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:
ab138f8
)
Proposed fix for bug 17552. Also the name of the function should be changed, because...
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 18 Feb 2009 12:41:28 +0000
(12:41 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 18 Feb 2009 12:41:28 +0000
(12:41 +0000)
includes/api/ApiResult.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiResult.php
b/includes/api/ApiResult.php
index
a796d74
..
f8fa56a
100644
(file)
--- a/
includes/api/ApiResult.php
+++ b/
includes/api/ApiResult.php
@@
-221,8
+221,12
@@
class ApiResult extends ApiBase {
*/
public function setIndexedTagName_internal( $path, $tag ) {
$data = & $this->mData;
- foreach((array)$path as $p)
+ foreach((array)$path as $p) {
+ if ( !isset( $data[$p] ) ) {
+ $data[$p] = array();
+ }
$data = & $data[$p];
+ }
if(is_null($data))
return;
$this->setIndexedTagName($data, $tag);