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
1 changed files with 4 additions and 1 deletions

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