Handle null from VariableGenerator::getVars in AbuseFilterViewExamine

Bug: T255633
Change-Id: I94ce4303d9250b84181b1cb230e680c2351d887b
This commit is contained in:
Umherirrender 2020-06-17 19:42:58 +02:00
parent ec14739a79
commit c55a12993d

View file

@ -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 ]
] );