aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Block.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Block.php')
-rw-r--r--includes/Block.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/Block.php b/includes/Block.php
index 3a2fa6eb9621..7aa1bc1dc811 100644
--- a/includes/Block.php
+++ b/includes/Block.php
@@ -426,9 +426,12 @@ class Block {
# Don't collide with expired blocks
Block::purgeExpired();
+ $row = $this->getDatabaseArray();
+ $row['ipb_id'] = $dbw->nextSequenceValue("ipblocks_ipb_id_seq");
+
$dbw->insert(
'ipblocks',
- $this->getDatabaseArray(),
+ $row,
__METHOD__,
array( 'IGNORE' )
);