From: Alexander Ebert Date: Mon, 30 Sep 2013 10:15:22 +0000 (+0200) Subject: Fixed orphan detection X-Git-Tag: 2.0.0_Beta_10~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95d4e737e981860ad03845404a731efe58f9fa61;p=GitHub%2FWoltLab%2FWCF.git Fixed orphan detection --- 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 9c3252b726..7b3b3e6f11 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -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