From 7128c455ccccd16ff4395991b1a9ba7cae7c3b11 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 5 Aug 2010 07:08:06 +0000 Subject: [PATCH] Followup r69091 Where did those spaces come from? :/ --- includes/api/ApiBase.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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" ); } -- 2.20.1