Index: trunk/phase3/includes/specials/SpecialBlock.php |
— | — | @@ -490,7 +490,7 @@ |
491 | 491 | # Give admins a heads-up before they go and block themselves. Much messier |
492 | 492 | # to do this for IPs, but it's pretty unlikely they'd ever get the 'block' |
493 | 493 | # permission anyway, although the code does allow for it |
494 | | - if( $target == $wgUser->getName() |
| 494 | + if( $target === $wgUser->getName() |
495 | 495 | && $data['AlreadyBlocked'] != htmlspecialchars( $wgUser->getName() ) ) |
496 | 496 | { |
497 | 497 | return array( 'ipb-blockingself' ); |