From 95d4e737e981860ad03845404a731efe58f9fa61 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 30 Sep 2013 12:15:22 +0200 Subject: [PATCH] Fixed orphan detection --- .../lib/data/moderation/queue/ModerationQueueAction.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1