From a4de8c5cff8b46e6381803d57d8a28c436f3e6f7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 6 Feb 2005 14:26:52 +0000 Subject: [PATCH] fix notice for unset variable when only one item displayed; not sure this code is very nice though. duplicate bits and scaryiness --- includes/QueryPage.php | 2 ++ 1 file changed, 2 insertions(+) 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"; } } -- 2.20.1