Call to a member function getVars() on a non-object in SpecialAbuseLog.php on line 284

Seen on wmf fatal log

Change-Id: I50eb4f9d1b19c8c39ede07e1149baf475cccaaaf
This commit is contained in:
Reedy 2012-07-24 14:50:01 +01:00
parent fd90b62c07
commit fad1fe4c41
2 changed files with 2 additions and 2 deletions

View file

@ -1020,7 +1020,7 @@ class AbuseFilter {
*
* @param $stored_dump
*
* @return object|AbuseFilterVariableHolder
* @return object|AbuseFilterVariableHolder|bool
*/
public static function loadVarDump( $stored_dump ) {
wfProfileIn( __METHOD__ );

View file

@ -281,7 +281,7 @@ class SpecialAbuseLog extends SpecialPage {
$vars = AbuseFilter::loadVarDump( $row->afl_var_dump );
// Diff, if available
if ( $vars->getVar( 'action' )->toString() == 'edit' ) {
if ( $vars && $vars->getVar( 'action' )->toString() == 'edit' ) {
$old_wikitext = $vars->getVar( 'old_wikitext' )->toString();
$new_wikitext = $vars->getVar( 'new_wikitext' )->toString();