mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 22:15:26 +00:00
Handle null from VariableGenerator::getVars in AbuseFilterViewExamine
Bug: T255633 Change-Id: I94ce4303d9250b84181b1cb230e680c2351d887b
This commit is contained in:
parent
ec14739a79
commit
c55a12993d
|
@ -131,7 +131,7 @@ class AbuseFilterViewExamine extends AbuseFilterView {
|
|||
$varGenerator = new RCVariableGenerator( $vars, $rc );
|
||||
$vars = $varGenerator->getVars();
|
||||
$out->addJsConfigVars( [
|
||||
'wgAbuseFilterVariables' => $vars->dumpAllVars( true ),
|
||||
'wgAbuseFilterVariables' => $vars ? $vars->dumpAllVars( true ) : [],
|
||||
'abuseFilterExamine' => [ 'type' => 'rc', 'id' => $rcid ]
|
||||
] );
|
||||
|
||||
|
|
Loading…
Reference in a new issue