Merge pull request #9905 from owncloud/joblist-non-existing-class

Dont try to execute jobs that no longer exist
This commit is contained in:
Thomas Müller 2014-07-28 11:09:27 +02:00
commit cfaa05cc0e

View file

@ -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;
}