diff --git a/includes/Views/AbuseFilterViewExamine.php b/includes/Views/AbuseFilterViewExamine.php index 52cca1a2c..d2f0312aa 100644 --- a/includes/Views/AbuseFilterViewExamine.php +++ b/includes/Views/AbuseFilterViewExamine.php @@ -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 ] ] );