]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Queue_item.php
Ignore .gitmodule ???
[quix0rs-gnu-social.git] / classes / Queue_item.php
index ce7762646d97098a9efe7fd22ccefc02d26c73f4..3a7d05adef7249d203a7dee5c24f2c64f39392e2 100644 (file)
@@ -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();
@@ -82,10 +82,10 @@ class Queue_item extends Managed_DataObject
     /**
      * Release a claimed item.
      */
-    function releaseCLaim()
+    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;