From fc9de94cbdeec6da6ae977260b100e79f9fad93a Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 4 Jun 2015 22:27:53 +0200 Subject: [PATCH] Modernize Queue_item to use Managed_DataObject functions --- classes/Queue_item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Queue_item.php b/classes/Queue_item.php index 0d6fd56af2..3a7d05adef 100644 --- a/classes/Queue_item.php +++ b/classes/Queue_item.php @@ -63,7 +63,7 @@ class Queue_item extends Managed_DataObject // XXX: potential race condition // can we force it to only update if claimed is still null // (or old)? - common_log(LOG_INFO, 'claiming queue item id = ' . $qi->id . + common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() . ' for transport ' . $qi->transport); $orig = clone($qi); $qi->claimed = common_sql_now(); @@ -85,7 +85,7 @@ class Queue_item extends Managed_DataObject function releaseClaim() { // DB_DataObject doesn't let us save nulls right now - $sql = sprintf("UPDATE queue_item SET claimed=NULL WHERE id=%d", $this->id); + $sql = sprintf("UPDATE queue_item SET claimed=NULL WHERE id=%d", $this->getID()); $this->query($sql); $this->claimed = null; -- 2.39.5