(bug 31206) "Altering blocks doesn't appear to be working". Don't compare string...
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 28 Sep 2011 01:28:29 +0000 (01:28 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 28 Sep 2011 01:28:29 +0000 (01:28 +0000)
includes/specials/SpecialBlock.php

index d0b806a..9c27511 100644 (file)
@@ -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...