From 4639c500a396ca572d832e083b97057a2e22c705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Mon, 16 Dec 2024 12:51:58 +0100 Subject: [PATCH] fix --- src/CronJobs/ClearbitJob.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/CronJobs/ClearbitJob.php b/src/CronJobs/ClearbitJob.php index 766644e9..5e55502c 100644 --- a/src/CronJobs/ClearbitJob.php +++ b/src/CronJobs/ClearbitJob.php @@ -113,14 +113,9 @@ public function getJobCallback() { $use = \apply_filters(SettingsClearbit::FILTER_SETTINGS_GLOBAL_IS_VALID_NAME, false); $useCron = UtilsSettingsHelper::isOptionCheckboxChecked(SettingsClearbit::SETTINGS_CLEARBIT_USE_JOBS_QUEUE_KEY, SettingsClearbit::SETTINGS_CLEARBIT_USE_JOBS_QUEUE_KEY); - - if (!$use || !$useCron) { - return; - } - $jobs = UtilsSettingsHelper::getOptionValueGroup(SettingsClearbit::SETTINGS_CLEARBIT_JOBS_KEY); - if (!$jobs) { + if (!$use || !$useCron || !$jobs) { return; }