From b0b10cf18618e7d92ce87dcf8e61adc343cc09e8 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Mon, 10 Aug 2020 17:46:30 +0300 Subject: [PATCH] [Queue_item] There is no "modified" attribute Fixes a regression introduced in ec86de2bc462c7b41540b9d1c537f2777bafef48 --- classes/Queue_item.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/classes/Queue_item.php b/classes/Queue_item.php index 39380b9938..8b75ec3afd 100644 --- a/classes/Queue_item.php +++ b/classes/Queue_item.php @@ -104,21 +104,14 @@ class Queue_item extends Managed_DataObject */ public function releaseClaim() { - $modified = common_sql_now(); // @fixme Consider $this->sqlValue('NULL') $ret = $this->query(sprintf( - <<<'END' - UPDATE queue_item - SET claimed = NULL, modified = %1$s - WHERE id = %2$d - END, - $this->_quote($modified), + 'UPDATE queue_item SET claimed = NULL WHERE id = %d', $this->getID() )); if ($ret) { $this->claimed = null; - $this->modified = $modified; $this->encache(); } }