Leave attribute variable
This commit is contained in:
parent
6dfa60cdff
commit
a1be5bc79f
1 changed files with 3 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue