Leave attribute variable

This commit is contained in:
Aaron Schulz 2008-04-13 21:01:06 +00:00
parent 6dfa60cdff
commit a1be5bc79f

View file

@ -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
: "<li{$attr}>{$line}</li>\n";