From d91b0ed998340479ab013a58f0a6886132e8b871 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Mon, 23 May 2011 18:52:36 +0000 Subject: [PATCH] Follow-up r84475: Block::parseTarget() should always return an array. --- includes/Block.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Block.php b/includes/Block.php index 457ae714e1..df0dfd694c 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -1007,9 +1007,9 @@ class Block { # We may have been through this before if( $target instanceof User ){ if( IP::isValid( $target->getName() ) ){ - return self::TYPE_IP; + return array( $target, self::TYPE_IP ); } else { - return self::TYPE_USER; + return array( $target, self::TYPE_USER ); } } elseif( $target === null ){ return array( null, null ); -- 2.20.1