summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dbqueuemanager.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dbqueuemanager.php b/lib/dbqueuemanager.php
index c0d4dcd29..46be54b30 100644
--- a/lib/dbqueuemanager.php
+++ b/lib/dbqueuemanager.php
@@ -34,7 +34,7 @@ class DBQueueManager extends QueueManager
function enqueue($object, $queue)
{
- $notice = (Notice)$object;
+ $notice = $object;
$qi = new Queue_item();
@@ -76,7 +76,9 @@ class DBQueueManager extends QueueManager
function done($object, $queue)
{
- $notice = (Notice)$object;
+ // XXX: right now, we only handle notices
+
+ $notice = $object;
$qi = Queue_item::pkeyGet(array('notice_id' => $notice->id,
'transport' => $queue));