diff --git a/classes/task/PKPUsageStatsLoader.php b/classes/task/PKPUsageStatsLoader.php index acaed2ac8f4..a17bc033266 100644 --- a/classes/task/PKPUsageStatsLoader.php +++ b/classes/task/PKPUsageStatsLoader.php @@ -107,9 +107,6 @@ protected function executeActions(): bool $this->autoStage(); } $processFilesResult = parent::executeActions(); - if (!$processFilesResult) { - return false; - } $site = Application::get()->getRequest()->getSite(); $jobs = []; @@ -133,7 +130,7 @@ protected function executeActions(): bool ), ScheduledTaskHelper::SCHEDULED_TASK_MESSAGE_TYPE_NOTICE); } - return (!$processingDirError); + return (!$processingDirError && $processFilesResult); } /**