Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Dec 16, 2024
1 parent 20df763 commit 4639c50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/CronJobs/ClearbitJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4639c50

Please sign in to comment.