Fixed erroneous query
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Dec 2014 20:19:52 +0000 (21:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Dec 2014 20:19:52 +0000 (21:19 +0100)
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php

index 6f0d42c52e07a08a0eb9b574c460e5ebd1391df3..cd361d61e9994f8fff2f94b03922655ba407bd3a 100644 (file)
@@ -141,7 +141,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction {
                        // load more entries to fill up list
                        $queueList = new ViewableModerationQueueList();
                        $queueList->getConditionBuilder()->add("moderation_queue.status IN (?)", array(array(ModerationQueue::STATUS_OUTSTANDING, ModerationQueue::STATUS_PROCESSING)));
-                       $queueList->getConditionBuilder()->add("moderation_queue.queueID NOT IN (?)", array($queueIDs));
+                       if (!empty($queueIDs)) $queueList->getConditionBuilder()->add("moderation_queue.queueID NOT IN (?)", array($queueIDs));
                        $queueList->sqlOrderBy = "moderation_queue.lastChangeTime DESC";
                        $queueList->sqlLimit = 5 - $count;
                        $queueList->loadUserProfiles = true;