diff options
author | Sam Reed <reedy@users.mediawiki.org> | 2010-06-20 18:48:34 +0000 |
---|---|---|
committer | Sam Reed <reedy@users.mediawiki.org> | 2010-06-20 18:48:34 +0000 |
commit | faf34b4073594d606b742ec7ee25de90032ccd7c (patch) | |
tree | 00f93fe9c89f2338df4f485a4417a2a73d4bdffb /includes/api/ApiQueryIWLinks.php | |
parent | e19087423a24a2cfa8d90b9c6ecbebe76bc90bf0 (diff) | |
download | mediawikicore-faf34b4073594d606b742ec7ee25de90032ccd7c.tar.gz mediawikicore-faf34b4073594d606b742ec7ee25de90032ccd7c.zip |
Per http://www.mediawiki.org/wiki/Special:Code/MediaWiki/66168#c7252 switch while ( $row = $db->fectchObject( $res ) ) to foreach ( $res as row )
On ApiQueryUsers switch $r to row, and remove nested brackets
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/68337
Diffstat (limited to 'includes/api/ApiQueryIWLinks.php')
-rw-r--r-- | includes/api/ApiQueryIWLinks.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index b932c1185c74..b8c440d0ba0a 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -84,7 +84,7 @@ class ApiQueryIWLinks extends ApiQueryBase { $count = 0; $db = $this->getDB(); - while ( $row = $db->fetchObject( $res ) ) { + foreach ( $res as $row ) { if ( ++$count > $params['limit'] ) { // We've reached the one extra which shows that // there are additional pages to be had. Stop here... |