Index: trunk/phase3/includes/Block.php |
— | — | @@ -1007,9 +1007,9 @@ |
1008 | 1008 | # We may have been through this before |
1009 | 1009 | if( $target instanceof User ){ |
1010 | 1010 | if( IP::isValid( $target->getName() ) ){ |
1011 | | - return self::TYPE_IP; |
| 1011 | + return array( $target, self::TYPE_IP ); |
1012 | 1012 | } else { |
1013 | | - return self::TYPE_USER; |
| 1013 | + return array( $target, self::TYPE_USER ); |
1014 | 1014 | } |
1015 | 1015 | } elseif( $target === null ){ |
1016 | 1016 | return array( null, null ); |