diff --git a/AbuseFilter.class.php b/AbuseFilter.class.php index c9a77ddb8..825e8ea00 100644 --- a/AbuseFilter.class.php +++ b/AbuseFilter.class.php @@ -1020,7 +1020,7 @@ class AbuseFilter { * * @param $stored_dump * - * @return object|AbuseFilterVariableHolder + * @return object|AbuseFilterVariableHolder|bool */ public static function loadVarDump( $stored_dump ) { wfProfileIn( __METHOD__ ); diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php index 1238762ad..936ad2dda 100644 --- a/special/SpecialAbuseLog.php +++ b/special/SpecialAbuseLog.php @@ -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();