From: Alexander Ebert Date: Fri, 12 Dec 2014 20:19:52 +0000 (+0100) Subject: Fixed erroneous query X-Git-Tag: 2.1.0_Beta_1~55 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ca67b1a1fba9164150275f60166acbe50638e5c;p=GitHub%2FWoltLab%2FWCF.git Fixed erroneous query --- 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;