fix notice for unset variable when only one item displayed; not sure this code is...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Feb 2005 14:26:52 +0000 (14:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 6 Feb 2005 14:26:52 +0000 (14:26 +0000)
includes/QueryPage.php

index 46582f0..4ac5aa9 100644 (file)
@@ -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 .= "<li{$attr}>{$format}</li>\n";
                                }
                        }