From: Alexander Ebert Date: Tue, 2 Jul 2013 00:38:49 +0000 (+0200) Subject: Fixed calculation of number of assigned moderation queues X-Git-Tag: 2.0.0_Beta_5~113^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=438ac59d939246afe647cbffc018bcd8f13e0417;p=GitHub%2FWoltLab%2FWCF.git Fixed calculation of number of assigned moderation queues --- diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php index 6fb743120d..7748bca455 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -248,10 +248,12 @@ class ModerationQueueManager extends SingletonFactory { LEFT JOIN wcf".WCF_N."_moderation_queue moderation_queue ON (moderation_queue.queueID = moderation_queue_to_user.queueID) WHERE moderation_queue_to_user.userID = ? + AND moderation_queue_to_user.isAffected = ? AND moderation_queue.status <> ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( WCF::getUser()->userID, + 1, ModerationQueue::STATUS_DONE )); $row = $statement->fetchArray();