From: Platonides Date: Wed, 22 Sep 2010 16:50:09 +0000 (+0000) Subject: Fix bug from r68337. The variable is called $res, not $result X-Git-Tag: 1.31.0-rc.0~34836 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=eb69d1cd55130d6f2ed95b41df970e7b0a179761;p=lhc%2Fweb%2Fwiklou.git Fix bug from r68337. The variable is called $res, not $result --- 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...