From 7b0b38d47ac8ce800e0139cc2bf2260f4d15b2c5 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 6 Jul 2022 10:11:53 +0200 Subject: [PATCH] Cron parallelization * refactor counts --- webservices/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webservices/cron.php b/webservices/cron.php index d992d0517..34cd39f05 100644 --- a/webservices/cron.php +++ b/webservices/cron.php @@ -306,7 +306,7 @@ function CronExec($oP, $bVerbose, $bDebug=false) } // Tasks to run later - if ($bVerbose && $aTasks == []) + if ($bVerbose && count($aTasks) == 0) { $oP->p('--'); $oSearch = new DBObjectSearch('BackgroundTask'); @@ -322,7 +322,7 @@ function CronExec($oP, $bVerbose, $bDebug=false) } } } - if ($aTasks == []) { + if (count($aTasks) == 0) { if ($bVerbose) { $oP->p("Sleeping...\n"); }