dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896c93f
)
ApiParamInfo: if no help URLs are available, return an empty array instead of array...
author
Max Semenik
<maxsem@users.mediawiki.org>
Sun, 14 Aug 2011 09:37:23 +0000
(09:37 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Sun, 14 Aug 2011 09:37:23 +0000
(09:37 +0000)
includes/api/ApiParamInfo.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiParamInfo.php
b/includes/api/ApiParamInfo.php
index
6ba115e
..
259443a
100644
(file)
--- 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;