From dc401069608bde62d4930ac0e3ff0e8364dec6df Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 18 Feb 2009 06:04:09 +0000 Subject: [PATCH] Don't give a warning if there are no files in the page set. --- includes/api/ApiQueryImageInfo.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 0fe5a23ea9..b98d2ad9bf 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -56,9 +56,10 @@ class ApiQueryImageInfo extends ApiQueryBase { } $pageIds = $this->getPageSet()->getAllTitlesByNamespace(); - $titles = array_keys($pageIds[NS_FILE]); - asort($titles); // Ensure the order is always the same - if (!empty($titles)) { + if ( !empty( $pageIds[NS_FILE] ) ) { + $titles = array_keys($pageIds[NS_FILE]); + asort($titles); // Ensure the order is always the same + $skip = false; if(!is_null($params['continue'])) { -- 2.20.1