From 2a099b1fe9010f88b5f7c09f9d9a658f6fce58e3 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Wed, 30 Mar 2011 20:05:17 +0000 Subject: [PATCH] Follow-up r85025 - use strict comparison --- 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 48ec00c149..fc97c01a6b 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -490,7 +490,7 @@ class SpecialBlock extends SpecialPage { # Give admins a heads-up before they go and block themselves. Much messier # 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() + if( $target === $wgUser->getName() && $data['AlreadyBlocked'] != htmlspecialchars( $wgUser->getName() ) ) { return array( 'ipb-blockingself' ); -- 2.20.1