X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FBlock.php;h=e20b5fdb41b531c268e3af4a90af2c0d4c4641ce;hb=d63121016d894e3fccf3308a26704472e69ec08f;hp=fde5f074c23bea65e66425da000c4e4a379297ac;hpb=cbf79c54bfbb39d58704d83de5453d9353e8317f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Block.php b/includes/Block.php index fde5f074c2..e20b5fdb41 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -307,7 +307,7 @@ class Block { # This has the nice property that a /32 block is ranked equally with a # single-IP block, which is exactly what it is... - $score = self::TYPE_RANGE - 1 + ( $size / 128 ); + $score = self::TYPE_RANGE - 1 + ( $size / 128 ); } else { $score = $block->getType(); @@ -465,7 +465,7 @@ class Block { Block::purgeExpired(); $row = $this->getDatabaseArray(); - $row['ipb_id'] = $dbw->nextSequenceValue("ipblocks_ipb_id_seq"); + $row['ipb_id'] = $dbw->nextSequenceValue( "ipblocks_ipb_id_seq" ); $dbw->insert( 'ipblocks',