Fix silly bug. To check if it's a range block use "mRangeStart != mRangeEnd" instead...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 18 Nov 2007 08:06:00 +0000 (08:06 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 18 Nov 2007 08:06:00 +0000 (08:06 +0000)
includes/SpecialIpblocklist.php

index ab2b61d..7278adc 100644 (file)
@@ -159,7 +159,7 @@ class IPUnblockForm {
 
                                if ( !$block ) { 
                                        $block = null;
-                               } else if ( !$block->mUser && $block->mRangeStart 
+                               } else if ( $block->mRangeStart != $block->mRangeEnd
                                                && !strstr ( $this->ip, "/" ) ) {
                                        /* If the specified IP is a single address, and the block is
                                         * a range block, don't unblock the range. */