Followup r69091 Where did those spaces come from? :/
authorSam Reed <reedy@users.mediawiki.org>
Thu, 5 Aug 2010 07:08:06 +0000 (07:08 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 5 Aug 2010 07:08:06 +0000 (07:08 +0000)
includes/api/ApiBase.php

index 9741a81..4b2a919 100644 (file)
@@ -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" );
                                }