mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Fixed a PHP notice in Views/AbuseFilterViewEdit.php
Change-Id: I39a6a4b3063dd4c5b07b014940170442c2bbdbe7
This commit is contained in:
parent
5163283cd6
commit
d307970e1e
|
@ -328,7 +328,7 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$readOnlyAttrib = array();
|
||||
$cbReadOnlyAttrib = array(); // For checkboxes
|
||||
|
||||
if ( !$this->canEdit() || ( $row->af_global == 1 && !$this->canEditGlobal() ) ) {
|
||||
if ( !$this->canEdit() || ( isset( $row->af_global ) && $row->af_global == 1 && !$this->canEditGlobal() ) ) {
|
||||
$readOnlyAttrib['readonly'] = 'readonly';
|
||||
$cbReadOnlyAttrib['disabled'] = 'disabled';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue