mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Check whether AbuseFilter::$editboxName is set before using it
Bug: 60981 Change-Id: I6b769d05865ea0865c6e0e9837968014c6ea70c3
This commit is contained in:
parent
7308dbe193
commit
044d86b276
|
@ -606,7 +606,7 @@ class AbuseFilterHooks {
|
|||
* @return bool
|
||||
*/
|
||||
public static function onMakeGlobalVariablesScript( array &$vars ) {
|
||||
if ( AbuseFilter::$editboxName !== null ) {
|
||||
if ( isset( AbuseFilter::$editboxName ) && AbuseFilter::$editboxName !== null ) {
|
||||
$vars['abuseFilterBoxName'] = AbuseFilter::$editboxName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue