From: Roan Kattouw Date: Thu, 11 Aug 2011 10:33:22 +0000 (+0000) Subject: Followup r85025, r85166, r93233: use strict comparison per CR comment, because "0... X-Git-Tag: 1.31.0-rc.0~28361 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=ef16b329b7672499a44e1ac49ecd62313cfd5940;p=lhc%2Fweb%2Fwiklou.git Followup r85025, r85166, r93233: use strict comparison per CR comment, because "0" != "00" is false --- diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 7b0b457cf5..51bc3b9c16 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -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' ); }