From: Happy-melon Date: Wed, 30 Mar 2011 20:05:17 +0000 (+0000) Subject: Follow-up r85025 - use strict comparison X-Git-Tag: 1.31.0-rc.0~31113 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=2a099b1fe9010f88b5f7c09f9d9a658f6fce58e3;p=lhc%2Fweb%2Fwiklou.git Follow-up r85025 - use strict comparison --- 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' );