Index: branches/wmf/1.18wmf1/includes/Block.php |
— | — | @@ -1028,7 +1028,7 @@ |
1029 | 1029 | # passed by some callers (bug 29116) |
1030 | 1030 | return null; |
1031 | 1031 | |
1032 | | - } elseif( in_array( $type, array( Block::TYPE_USER, Block::TYPE_IP, Block::TYPE_RANGE, null ) ) ) { |
| 1032 | + } elseif( in_array( $type, array( Block::TYPE_USER, Block::TYPE_IP, Block::TYPE_RANGE ) ) ) { |
1033 | 1033 | $block = new Block(); |
1034 | 1034 | $block->fromMaster( $fromMaster ); |
1035 | 1035 | |