Check whether AbuseFilter::$editboxName is set before using it

Bug: 60981
Change-Id: I6b769d05865ea0865c6e0e9837968014c6ea70c3
This commit is contained in:
Marius Hoch 2014-02-07 16:05:52 +01:00
parent 7308dbe193
commit 044d86b276

View file

@ -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;
}