From: Mikael Nordfeldth Date: Thu, 4 Jun 2015 20:27:53 +0000 (+0200) Subject: Modernize Queue_item to use Managed_DataObject functions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc9de94cbdeec6da6ae977260b100e79f9fad93a;p=quix0rs-gnu-social.git Modernize Queue_item to use Managed_DataObject functions --- 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;