Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -611,7 +611,7 @@ |
612 | 612 | 0, // suppress name? |
613 | 613 | 0 // block from sending email? |
614 | 614 | ); |
615 | | - $oldblock = Block::newFromDB( $u->getName() ); |
| 615 | + $oldblock = Block::newFromDB( $u->getName(), $u->getId() ); |
616 | 616 | if( !$oldblock ) { |
617 | 617 | $block->insert(); |
618 | 618 | # Prepare log parameters |