aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryPageProps.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/api/ApiQueryPageProps.php')
-rw-r--r--includes/api/ApiQueryPageProps.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php
index 269afb147c7b..dd19bf23cfb3 100644
--- a/includes/api/ApiQueryPageProps.php
+++ b/includes/api/ApiQueryPageProps.php
@@ -110,6 +110,7 @@ class ApiQueryPageProps extends ApiQueryBase {
* @return bool True if it fits in the result
*/
private function addPageProps( $result, $page, $props ) {
+ ApiResult::setArrayType( $props, 'assoc' );
$fit = $result->addValue( array( 'query', 'pages', $page ), 'pageprops', $props );
if ( !$fit ) {