From f4635a95e7ab7479c3e5a15fb1d47f1a5609340a Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 2 Mar 2016 18:48:08 -0800 Subject: [PATCH] Use ipb_id when updating expiry in Block::updateTimestamp() If Block::purgeExpired() hasn't been called due to low traffic, already expired blocks might have their timestamps extended. Bug: T128695 Change-Id: I21e7dca57bda77a755b54d0e09f340c3f0e75bd6 --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Block.php b/includes/Block.php index 764592d0cd..b8e900d90a 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -844,7 +844,7 @@ class Block { 'ipb_expiry' => $dbw->timestamp( $this->mExpiry ), ], [ /* WHERE */ - 'ipb_address' => (string)$this->getTarget() + 'ipb_id' => $this->getId(), ], __METHOD__ ); -- 2.20.1