From 3ca67b1a1fba9164150275f60166acbe50638e5c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 12 Dec 2014 21:19:52 +0100 Subject: [PATCH] Fixed erroneous query --- .../lib/data/moderation/queue/ModerationQueueAction.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index 6f0d42c52e..cd361d61e9 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -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; -- 2.20.1