Followup r85025, r85166, r93233: use strict comparison per CR comment, because "0...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 11 Aug 2011 10:33:22 +0000 (10:33 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 11 Aug 2011 10:33:22 +0000 (10:33 +0000)
includes/specials/SpecialBlock.php

index 7b0b457..51bc3b9 100644 (file)
@@ -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' );
                        }