From: Sam Reed Date: Thu, 5 Aug 2010 07:08:06 +0000 (+0000) Subject: Followup r69091 Where did those spaces come from? :/ X-Git-Tag: 1.31.0-rc.0~35710 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=7128c455ccccd16ff4395991b1a9ba7cae7c3b11;p=lhc%2Fweb%2Fwiklou.git Followup r69091 Where did those spaces come from? :/ --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 9741a8145b..4b2a919a62 100644 --- 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" ); }