From a1be5bc79f8588aa0b753f14adf32eb8251d67d5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 13 Apr 2008 21:01:06 +0000 Subject: [PATCH] Leave attribute variable --- includes/QueryPage.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 5ad78158f0..63c57cb1a8 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -396,6 +396,9 @@ class QueryPage { for( $i = 0; $i < $num && $row = $dbr->fetchObject( $res ); $i++ ) { $line = $this->formatResult( $skin, $row ); if( $line ) { + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) + ? ' class="not-patrolled"' + : ''; $html[] = $this->listoutput ? $line : "{$line}\n"; -- 2.20.1