From e04a675ab3edbf70d37612df1a77ac0b0947db34 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 15 Aug 2004 09:54:28 +0000 Subject: [PATCH] Fix notice; use isset() to test if things are set --- includes/QueryPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 92a9911e99..99c2a3f64d 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -152,7 +152,7 @@ class QueryPage { # Only read at most $num rows, because $res may contain the whole 1000 for ( $i = 0; $i < $num && $obj = $dbr->fetchObject( $res ); $i++ ) { $format = $this->formatResult( $sk, $obj ); - $attr = ( !is_null ( $obj->usepatrol ) && $obj->usepatrol && + $attr = ( isset ( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) ? ' class="not_patrolled"' : ''; $s .= "{$format}\n"; } -- 2.20.1