diff options
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -122,8 +122,11 @@ try { // Work and success :-) $jobList = \OC::$server->getJobList(); $job = $jobList->getNext(); - $job->execute($jobList, $logger); - $jobList->setLastJob($job); + if ($job != null) + { + $job->execute($jobList, $logger); + $jobList->setLastJob($job); + } OC_JSON::success(); } } |