summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-28 11:09:27 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-28 11:09:27 +0200
commitcfaa05cc0e76e2e43fad9d047c0bbb8659f2808e (patch)
tree4c2ed8e66e0b9e5409a2a694afb4c73ea7a35cfb
parentab8efe3aa22fbe216077a9c9584d553d698420a5 (diff)
parent43978befdaa146eb6e87ba64daf93764a01e4caf (diff)
downloadnextcloud-server-cfaa05cc0e76e2e43fad9d047c0bbb8659f2808e.tar.gz
nextcloud-server-cfaa05cc0e76e2e43fad9d047c0bbb8659f2808e.zip
Merge pull request #9905 from owncloud/joblist-non-existing-class
Dont try to execute jobs that no longer exist
-rw-r--r--lib/private/backgroundjob/joblist.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index 211d7e9abfc..9d15cd1663a 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -96,7 +96,10 @@ class JobList implements IJobList {
$query->execute();
$jobs = array();
while ($row = $query->fetch()) {
- $jobs[] = $this->buildJob($row);
+ $job = $this->buildJob($row);
+ if ($job) {
+ $jobs[] = $job;
+ }
}
return $jobs;
}