Merge pull request #9844 from OliverKohlDSc/patch-1
CRON call ends in null exception
This commit is contained in:
commit
910b827b98
6
cron.php
6
cron.php
|
@ -122,8 +122,10 @@ 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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue