From: Brion Vibber Date: Sun, 15 Aug 2004 09:54:28 +0000 (+0000) Subject: Fix notice; use isset() to test if things are set X-Git-Tag: 1.5.0alpha1~2332 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=e04a675ab3edbf70d37612df1a77ac0b0947db34;p=lhc%2Fweb%2Fwiklou.git Fix notice; use isset() to test if things are set --- 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"; }