From: Niklas Laxström Date: Mon, 20 Sep 2010 13:35:51 +0000 (+0000) Subject: Coding style X-Git-Tag: 1.31.0-rc.0~34862 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=702ff3c5f2ed5e0935b255b93539f7b1cf1d52eb;p=lhc%2Fweb%2Fwiklou.git Coding style --- diff --git a/includes/specials/SpecialShortpages.php b/includes/specials/SpecialShortpages.php index 8ef53d2b7c..989e4c07ba 100644 --- a/includes/specials/SpecialShortpages.php +++ b/includes/specials/SpecialShortpages.php @@ -72,11 +72,13 @@ class ShortPagesPage extends QueryPage { # the page must exist for it to have been pulled out of the table if( $this->isCached() ) { $batch = new LinkBatch(); - while( $row = $db->fetchObject( $res ) ) + foreach ( $res as $row ) { $batch->add( $row->namespace, $row->title ); + } $batch->execute(); - if( $db->numRows( $res ) > 0 ) + if ( $db->numRows( $res ) > 0 ) { $db->dataSeek( $res, 0 ); + } } }