Fixed orphan detection
authorAlexander Ebert <ebert@woltlab.com>
Mon, 30 Sep 2013 10:15:22 +0000 (12:15 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 30 Sep 2013 10:15:22 +0000 (12:15 +0200)
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php

index 9c3252b726a362a93c12d5b50cce50d13ac4a130..7b3b3e6f11f6b266d21bd9364f4e38bd24764471 100644 (file)
@@ -99,7 +99,8 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction {
                
                // check if user storage is outdated
                $totalCount = ModerationQueueManager::getInstance()->getOutstandingModerationCount();
-               if (count($queueList) < $totalCount) {
+               $count = count($queueList);
+               if ($count < 5 && $count < $totalCount) {
                        UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'outstandingModerationCount');
                        
                        // check for orphaned queues