Merge pull request #9844 from OliverKohlDSc/patch-1

CRON call ends in null exception
remotes/origin/fix-10825
Thomas Müller 12 years ago
commit 910b827b98
  1. 6
      cron.php

@ -122,8 +122,10 @@ try {
// Work and success :-) // Work and success :-)
$jobList = \OC::$server->getJobList(); $jobList = \OC::$server->getJobList();
$job = $jobList->getNext(); $job = $jobList->getNext();
$job->execute($jobList, $logger); if ($job != null) {
$jobList->setLastJob($job); $job->execute($jobList, $logger);
$jobList->setLastJob($job);
}
OC_JSON::success(); OC_JSON::success();
} }
} }

Loading…
Cancel
Save