From: Max Semenik Date: Sun, 14 Aug 2011 09:37:23 +0000 (+0000) Subject: ApiParamInfo: if no help URLs are available, return an empty array instead of array... X-Git-Tag: 1.31.0-rc.0~28279 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=e214ea91df50c160738cbc6ae5972c4a19288f2c;p=lhc%2Fweb%2Fwiklou.git ApiParamInfo: if no help URLs are available, return an empty array instead of array with one empty element --- diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 6ba115e431..259443a92c 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -117,6 +117,9 @@ class ApiParamInfo extends ApiBase { } $retval['helpurls'] = (array)$obj->getHelpUrls(); + if ( isset( $retval['helpurls'][0] ) && $retval['helpurls'][0] === false ) { + $retval['helpurls'] = array(); + } $result->setIndexedTagName( $retval['helpurls'], 'helpurl' ); $retval['allexamples'] = $examples;