From ef16b329b7672499a44e1ac49ecd62313cfd5940 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 11 Aug 2011 10:33:22 +0000 Subject: [PATCH] Followup r85025, r85166, r93233: use strict comparison per CR comment, because "0" != "00" is false --- includes/specials/SpecialBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 7b0b457cf5..51bc3b9c16 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -555,7 +555,7 @@ class SpecialBlock extends SpecialPage { # to do this for IPs, but it's pretty unlikely they'd ever get the 'block' # permission anyway, although the code does allow for it if( $target === $wgUser->getName() && - ( $data['PreviousTarget'] != $data['Target'] || !$data['Confirm'] ) ) + ( $data['PreviousTarget'] !== $data['Target'] || !$data['Confirm'] ) ) { return array( 'ipb-blockingself' ); } -- 2.20.1