Fixed calculation of number of assigned moderation queues
authorAlexander Ebert <ebert@woltlab.com>
Tue, 2 Jul 2013 00:38:49 +0000 (02:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 2 Jul 2013 00:38:49 +0000 (02:38 +0200)
wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php

index 6fb743120d097af86ff4b987990f051e648ca7d1..7748bca45583f1b0fef32df423cff93869860e61 100644 (file)
@@ -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();