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:
ddc7efb
)
Followup r69091 Where did those spaces come from? :/
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 5 Aug 2010 07:08:06 +0000
(07:08 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 5 Aug 2010 07:08:06 +0000
(07:08 +0000)
includes/api/ApiBase.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiBase.php
b/includes/api/ApiBase.php
index
9741a81
..
4b2a919
100644
(file)
--- a/
includes/api/ApiBase.php
+++ b/
includes/api/ApiBase.php
@@
-718,8
+718,8
@@
abstract class ApiBase {
break;
case 'user':
if ( !is_array( $value ) ) {
- $value = array( $value );
- }
+
$value = array( $value );
+
}
foreach ( $value as $key => $val ) {
$title = Title::makeTitleSafe( NS_USER, $val );
@@
-730,9
+730,9
@@
abstract class ApiBase {
}
if ( !$multi ) {
- $value = $value[0];
- }
- break;
+
$value = $value[0];
+
}
+
break;
default:
ApiBase::dieDebug( __METHOD__, "Param $encParamName's type is unknown - $type" );
}