From 9fc6772089a07ce8c842ca2d96f23318918a8fd3 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 9 Jun 2008 22:35:17 +0000 Subject: [PATCH] Minor logic error on removing blocks on range when tweaking an IP. --- includes/SpecialBlockip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 620fd80979..495ee745f5 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -388,7 +388,7 @@ class IPBlockForm { if ( wfRunHooks('BlockIp', array(&$block, &$wgUser)) ) { - if ( $oldblock = Block::newFromDB( $this->BlockAddress ) ) { + if ( $oldblock = Block::newFromDB( $this->BlockAddress ) && $oldblock->mAddress == $this->BlockAddress ) { $oldblock->delete(); // Block already exists. Silently delete it } $block->insert(); -- 2.20.1