X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FQueryPage.php;h=27c6927bdd98188a9fdca236cb3d4e535b0d0f68;hb=d35ccbc6f1872a27df32596c62a29238101945e5;hp=ce240a778313038f0662a547db6577feb2b01615;hpb=8485b649c605bc4e785f8eacc359855c297b0fdb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/QueryPage.php b/includes/QueryPage.php index ce240a7783..27c6927bdd 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -393,7 +393,7 @@ class QueryPage { for( $i = 0; $i < $num && $row = $dbr->fetchObject( $res ); $i++ ) { $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput @@ -407,7 +407,7 @@ class QueryPage { $row = null; $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput