From 49bfc913665d8414e48bdd30de0db144825b9efd Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 7 May 2009 20:09:45 +0000 Subject: [PATCH] (bug 18710) Fixed internal error with empty parameter in ApiParamInfo --- RELEASE-NOTES | 1 + includes/api/ApiParamInfo.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8d7379ba61..4b24b16a29 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -133,6 +133,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Added PHP and database version to meta=siteinfo output * (bug 18533) Add readonly message to meta=siteinfo output * (bug 18518) Add clprop=hidden to prop=categories +* (bug 18710) Fixed internal error with empty parameter in ApiParamInfo === Languages updated in 1.16 === diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index e8f7b2a319..4b2a2636d4 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -46,6 +46,7 @@ class ApiParamInfo extends ApiBase { if(is_array($params['modules'])) { $modArr = $this->getMain()->getModules(); + $r['modules'] = array(); foreach($params['modules'] as $m) { if(!isset($modArr[$m])) @@ -63,6 +64,7 @@ class ApiParamInfo extends ApiBase { if(is_array($params['querymodules'])) { $qmodArr = $queryObj->getModules(); + $r['querymodules'] = array(); foreach($params['querymodules'] as $qm) { if(!isset($qmodArr[$qm])) -- 2.20.1