From 702ff3c5f2ed5e0935b255b93539f7b1cf1d52eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 20 Sep 2010 13:35:51 +0000 Subject: [PATCH] Coding style --- includes/specials/SpecialShortpages.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); + } } } -- 2.20.1