Dont try to execute jobs that no longer exist

This commit is contained in:
Robin Appelman 2014-07-25 18:02:02 +02:00
parent 40f2a34be1
commit 43978befda
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;
}