Skip to content

Commit

Permalink
Fix sse cron not running, that one is reverse from the others so the …
Browse files Browse the repository at this point in the history
…check needs to be opposite
  • Loading branch information
austinwbest committed Sep 19, 2024
1 parent 685ba08 commit 67a3b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/app/www/public/functions/crons.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function canCronRun($cron, $settingsTable)
}
}

if ($settingsTable[$field]) {
if (($cron == 'sse' && !$settingsTable[$field]) || ($cron != 'sse' && $settingsTable[$field])) {
logger($log, 'Cron cancelled: disabled in tasks menu');
logger($log, 'run <-');
echo date('c') . ' Cron: ' . $cron . ' cancelled, disabled in tasks menu' . "\n";
Expand Down

0 comments on commit 67a3b11

Please sign in to comment.