From 53dcd657230ae900e5850deca1aa22b9c971b6d2 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 14 Oct 2025 11:21:54 +0200 Subject: [PATCH] fix: Apply suggestion from @julien-nc Co-authored-by: Julien Veyssier Signed-off-by: Marcel Klehr --- apps/settings/lib/SetupChecks/TaskProcessingSuccessRate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/settings/lib/SetupChecks/TaskProcessingSuccessRate.php b/apps/settings/lib/SetupChecks/TaskProcessingSuccessRate.php index 7d8b323a8a5..8cb947b7733 100644 --- a/apps/settings/lib/SetupChecks/TaskProcessingSuccessRate.php +++ b/apps/settings/lib/SetupChecks/TaskProcessingSuccessRate.php @@ -41,7 +41,8 @@ class TaskProcessingSuccessRate implements ISetupCheck { $lastNDays = 1; while ($taskCount === 0 && $lastNDays < self::MAX_DAYS) { $lastNDays++; - $tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - 60 * 60 * 24 * $lastNDays); // userId: '' means no filter, whereas null would mean guest + // userId: '' means no filter, whereas null would mean guest + $tasks = $this->taskProcessingManager->getTasks(userId: '', scheduleAfter: $this->timeFactory->now()->getTimestamp() - (60 * 60 * 24 * $lastNDays)); $taskCount = count($tasks); } if ($taskCount === 0) {