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:
48a042c
)
arrray?
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 23 Aug 2010 22:52:37 +0000
(22:52 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 23 Aug 2010 22:52:37 +0000
(22:52 +0000)
includes/api/ApiResult.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiResult.php
b/includes/api/ApiResult.php
index
bc225ca
..
20c0b8b
100644
(file)
--- a/
includes/api/ApiResult.php
+++ b/
includes/api/ApiResult.php
@@
-189,7
+189,7
@@
class ApiResult extends ApiBase {
/**
* In case the array contains indexed values (in addition to named),
* give all indexed values the given tag name. This function MUST be
/**
* In case the array contains indexed values (in addition to named),
* give all indexed values the given tag name. This function MUST be
- * called on every arr
r
ay that has numerical indexes.
+ * called on every array that has numerical indexes.
* @param $arr array
* @param $tag string Tag name
*/
* @param $arr array
* @param $tag string Tag name
*/
@@
-198,8
+198,7
@@
class ApiResult extends ApiBase {
if ( !$this->getIsRawMode() ) {
return;
}
if ( !$this->getIsRawMode() ) {
return;
}
- if ( $arr === null || $tag === null || !is_array( $arr ) || is_array( $tag ) )
- {
+ if ( $arr === null || $tag === null || !is_array( $arr ) || is_array( $tag ) ) {
ApiBase::dieDebug( __METHOD__, 'Bad parameter' );
}
// Do not use setElement() as it is ok to call this more than once
ApiBase::dieDebug( __METHOD__, 'Bad parameter' );
}
// Do not use setElement() as it is ok to call this more than once