Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cron.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 4c86407b944..ba17c899894 100644
--- a/cron.php
+++ b/cron.php
@@ -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();
}
}