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:
authorOliver Kohl D.Sc. <oliver@kohl.bz>2014-07-24 15:46:40 +0400
committerOliver Kohl D.Sc. <oliver@kohl.bz>2014-07-24 15:46:40 +0400
commit97e61f438fde6959921ff7eece0d7dc484be94a7 (patch)
tree3946f9ff9273fe801c06268969853593e90623bf /cron.php
parente2327f83ed60ca29fd1513a40bcefd26e52c54bf (diff)
CRON call ends in null exception
[error] 4461#0: *186285 FastCGI sent in stderr: "PHP message : PHP Fatal error: Call to a member function execute() on null in /var/www/ownc loud/cron.php on line 125" while reading response header from upstream, client: 217.13.183.252, server: cloud.mycloud.com, request: "GET /cron.php HTTP/1.1", upstre am: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cloud.mycloud.com", referrer: " https://cloud.mycloud.com/"
Diffstat (limited to 'cron.php')
-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();
}
}