From: Brion Vibber Date: Sun, 6 Feb 2005 14:26:52 +0000 (+0000) Subject: fix notice for unset variable when only one item displayed; not sure this code is... X-Git-Tag: 1.5.0alpha1~766 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=a4de8c5cff8b46e6381803d57d8a28c436f3e6f7;p=lhc%2Fweb%2Fwiklou.git fix notice for unset variable when only one item displayed; not sure this code is very nice though. duplicate bits and scaryiness --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 46582f0983..4ac5aa9d54 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -209,6 +209,8 @@ class QueryPage { $obj = null; $format = $this->formatResult( $sk, $obj ); if( $format ) { + $attr = ( isset ( $obj->usepatrol ) && $obj->usepatrol && + $obj->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $s .= "{$format}\n"; } }