Index: trunk/phase3/includes/specials/SpecialBlock.php |
— | — | @@ -633,7 +633,7 @@ |
634 | 634 | $status = $block->insert(); |
635 | 635 | if( !$status ) { |
636 | 636 | # Show form unless the user is already aware of this... |
637 | | - if( ( $data['PreviousTarget'] != htmlspecialchars( $block->getTarget() ) ) || !$data['Confirm'] ) { |
| 637 | + if( ( array_key_exists('PreviousTarget', $data ) && $data['PreviousTarget'] != htmlspecialchars( $block->getTarget() ) ) || !$data['Confirm'] ) { |
638 | 638 | return array( array( 'ipb_already_blocked', $block->getTarget() ) ); |
639 | 639 | # Otherwise, try to update the block... |
640 | 640 | } else { |