From: Sam Reed Date: Mon, 23 Aug 2010 22:52:37 +0000 (+0000) Subject: arrray? X-Git-Tag: 1.31.0-rc.0~35356 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=b1935513e04712a0f3df2e90102b07657ce25808;p=lhc%2Fweb%2Fwiklou.git arrray? --- diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index bc225ca77c..20c0b8b4bd 100644 --- 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 - * called on every arrray that has numerical indexes. + * called on every array that has numerical indexes. * @param $arr array * @param $tag string Tag name */ @@ -198,8 +198,7 @@ class ApiResult extends ApiBase { 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