Fix bug from r68337. The variable is called $res, not $result
authorPlatonides <platonides@users.mediawiki.org>
Wed, 22 Sep 2010 16:50:09 +0000 (16:50 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 22 Sep 2010 16:50:09 +0000 (16:50 +0000)
includes/api/ApiQueryImages.php

index e6b4759..2fd183a 100644 (file)
@@ -108,7 +108,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                } else {
                        $titles = array();
                        $count = 0;
-                       foreach ( $result as $row ) {
+                       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...