From: Daniel Cannon Date: Sun, 18 Nov 2007 08:06:00 +0000 (+0000) Subject: Fix silly bug. To check if it's a range block use "mRangeStart != mRangeEnd" instead... X-Git-Tag: 1.31.0-rc.0~50826 X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=commitdiff_plain;h=b34b6cd7b3e3d76b0b1f3b5733f172faeae2e9d1;p=lhc%2Fweb%2Fwiklou.git Fix silly bug. To check if it's a range block use "mRangeStart != mRangeEnd" instead of just checking if one or the other is set (as they always both are). Remove check for username, unneeded. --- diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index ab2b61d8df..7278adcfc3 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -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. */