From eb69d1cd55130d6f2ed95b41df970e7b0a179761 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 22 Sep 2010 16:50:09 +0000 Subject: [PATCH] Fix bug from r68337. The variable is called $res, not $result --- includes/api/ApiQueryImages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index e6b4759815..2fd183a3c7 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -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... -- 2.20.1