From aac69c2f69ca28b82718e86d53e5098713d3d9eb Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Sun, 31 Aug 2008 07:08:11 +0000 Subject: [PATCH] Fix some notices --- SpecialAbuseFilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpecialAbuseFilter.php b/SpecialAbuseFilter.php index 27cdaa8f3..7e86707ae 100644 --- a/SpecialAbuseFilter.php +++ b/SpecialAbuseFilter.php @@ -263,7 +263,7 @@ class SpecialAbuseFilter extends SpecialPage { return false; } - if ($row->af_hidden && !$this->canEdit()) { + if (isset($row->af_hidden) && $row->af_hidden && !$this->canEdit()) { return wfMsg( 'abusefilter-edit-denied' ); } @@ -458,7 +458,7 @@ class SpecialAbuseFilter extends SpecialPage { // Load the main row $row = $dbr->selectRow( 'abuse_filter', '*', array( 'af_id' => $id ), __METHOD__ ); - if (!$row->af_id) + if (!isset($row) || !isset($row->af_id) || !$row->af_id) return array( new stdClass,array() ); // Load the actions