Merge pull request #9905 from owncloud/joblist-non-existing-class
Dont try to execute jobs that no longer exist
This commit is contained in:
commit
cfaa05cc0e
|
@ -96,7 +96,10 @@ class JobList implements IJobList {
|
||||||
$query->execute();
|
$query->execute();
|
||||||
$jobs = array();
|
$jobs = array();
|
||||||
while ($row = $query->fetch()) {
|
while ($row = $query->fetch()) {
|
||||||
$jobs[] = $this->buildJob($row);
|
$job = $this->buildJob($row);
|
||||||
|
if ($job) {
|
||||||
|
$jobs[] = $job;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $jobs;
|
return $jobs;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue