From: Aaron Schulz Date: Sun, 13 Apr 2008 21:01:06 +0000 (+0000) Subject: Leave attribute variable X-Git-Tag: 1.31.0-rc.0~48355 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=a1be5bc79f8588aa0b753f14adf32eb8251d67d5;p=lhc%2Fweb%2Fwiklou.git Leave attribute variable --- 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";