Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -718,8 +718,8 @@ |
719 | 719 | break; |
720 | 720 | case 'user': |
721 | 721 | if ( !is_array( $value ) ) { |
722 | | - $value = array( $value ); |
723 | | - } |
| 722 | + $value = array( $value ); |
| 723 | + } |
724 | 724 | |
725 | 725 | foreach ( $value as $key => $val ) { |
726 | 726 | $title = Title::makeTitleSafe( NS_USER, $val ); |
— | — | @@ -730,9 +730,9 @@ |
731 | 731 | } |
732 | 732 | |
733 | 733 | if ( !$multi ) { |
734 | | - $value = $value[0]; |
735 | | - } |
736 | | - break; |
| 734 | + $value = $value[0]; |
| 735 | + } |
| 736 | + break; |
737 | 737 | default: |
738 | 738 | ApiBase::dieDebug( __METHOD__, "Param $encParamName's type is unknown - $type" ); |
739 | 739 | } |