summaryrefslogtreecommitdiffstats
path: root/lib/private/backgroundjob
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-25 18:02:02 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-25 18:02:02 +0200
commit43978befdaa146eb6e87ba64daf93764a01e4caf (patch)
treef2a18196fed3f0ea5d742f1cec455ab65943efe9 /lib/private/backgroundjob
parent40f2a34be113db75cd26166de35e9ba3076e4cf3 (diff)
downloadnextcloud-server-43978befdaa146eb6e87ba64daf93764a01e4caf.tar.gz
nextcloud-server-43978befdaa146eb6e87ba64daf93764a01e4caf.zip
Dont try to execute jobs that no longer exist
Diffstat (limited to 'lib/private/backgroundjob')
-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;
}