Skip to content
Snippets Groups Projects
Commit 0d766d2f authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by Jan-Hendrik Willms
Browse files

Resolve "Cronjobs laufen nicht"

Closes #4095

Merge request studip/studip!2941
parent c90f4767
No related branches found
No related tags found
No related merge requests found
...@@ -247,8 +247,8 @@ class CronjobScheduler ...@@ -247,8 +247,8 @@ class CronjobScheduler
} }
// Find all schedules that are due to execute and which task is active // Find all schedules that are due to execute and which task is active
$temp = CronjobSchedule::findBySQL('active = 1 AND next_execution <= UNIX_TIMESTAMP() ' $temp = CronjobSchedule::findBySQL('`active` = 1 AND `next_execution` <= UNIX_TIMESTAMP() '
.'ORDER next_execution'); .'ORDER BY `next_execution`');
$schedules = array_filter($temp, function ($schedule) { return $schedule->task->active; }); $schedules = array_filter($temp, function ($schedule) { return $schedule->task->active; });
if (count($schedules) === 0) { if (count($schedules) === 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment