From: Aaron Schulz Date: Wed, 28 Sep 2011 01:28:29 +0000 (+0000) Subject: (bug 31206) "Altering blocks doesn't appear to be working". Don't compare string... X-Git-Tag: 1.31.0-rc.0~27393 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=b01296220fc31e9671458c412dfee5e124134ebf;p=lhc%2Fweb%2Fwiklou.git (bug 31206) "Altering blocks doesn't appear to be working". Don't compare string to User objects :) --- diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index d0b806a5db..9c2751158e 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -643,7 +643,7 @@ class SpecialBlock extends SpecialPage { if( !$status ) { # Show form unless the user is already aware of this... if( !$data['Confirm'] || ( array_key_exists( 'PreviousTarget', $data ) - && $data['PreviousTarget'] !== $block->getTarget() ) ) + && $data['PreviousTarget'] !== $target ) ) { return array( array( 'ipb_already_blocked', $block->getTarget() ) ); # Otherwise, try to update the block...