mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 23:40:19 +00:00
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:
parent
fd90b62c07
commit
fad1fe4c41
|
@ -1020,7 +1020,7 @@ class AbuseFilter {
|
|||
*
|
||||
* @param $stored_dump
|
||||
*
|
||||
* @return object|AbuseFilterVariableHolder
|
||||
* @return object|AbuseFilterVariableHolder|bool
|
||||
*/
|
||||
public static function loadVarDump( $stored_dump ) {
|
||||
wfProfileIn( __METHOD__ );
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue