Follow-up r83827: a Block object will never be internally of TYPE_ID.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sun, 13 Mar 2011 15:44:49 +0000 (15:44 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sun, 13 Mar 2011 15:44:49 +0000 (15:44 +0000)
includes/Block.php

index a58789b..d6fd329 100644 (file)
@@ -1003,7 +1003,7 @@ class Block {
                list( $target, $type ) = self::parseTarget( $this->mAddress );
 
                # Check whether it's an autoblock
-               if( $type == self::TYPE_ID && $this->mAuto ){
+               if( $this->mAuto ){
                        $type = self::TYPE_AUTO;
                }