From 25231f842e14fab7b7b0ecc9795215e4dd3c9297 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 20 Oct 2012 03:23:27 +0100 Subject: [PATCH] Bug 41234 - api prop=imageinfo broken on PHP 5.4 Fix by Roan Change-Id: I14d8da45f7655ded501e3dd48dbdd424ecacc885 --- includes/api/ApiQueryImageInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index ee55fb5476..de0261413f 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -172,7 +172,7 @@ class ApiQueryImageInfo extends ApiQueryBase { $data = $this->getResultData(); foreach ( $data['query']['pages'] as $pageid => $arr ) { - if ( !isset( $arr['imagerepository'] ) ) { + if ( is_array( $arr ) && !isset( $arr['imagerepository'] ) ) { $result->addValue( array( 'query', 'pages', $pageid ), 'imagerepository', '' -- 2.20.1