Follow-up r85025 - use strict comparison
authorHappy-melon <happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 20:05:17 +0000 (20:05 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Wed, 30 Mar 2011 20:05:17 +0000 (20:05 +0000)
includes/specials/SpecialBlock.php

index 48ec00c..fc97c01 100644 (file)
@@ -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' );