From b34b6cd7b3e3d76b0b1f3b5733f172faeae2e9d1 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Sun, 18 Nov 2007 08:06:00 +0000 Subject: [PATCH] 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. --- includes/SpecialIpblocklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.20.1