Fixed a PHP notice in Views/AbuseFilterViewEdit.php

Change-Id: I39a6a4b3063dd4c5b07b014940170442c2bbdbe7
This commit is contained in:
Marius Hoch 2012-12-30 05:02:04 +01:00
parent 5163283cd6
commit d307970e1e

View file

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