Health: check $jobs for jobs, not $sources

refs #1278
This commit is contained in:
David Ulbricht 2017-11-09 09:34:49 +01:00 committed by Thomas Gelf
parent 9f6771f09e
commit a133706996

View File

@ -212,7 +212,7 @@ class Health
{
$check = new CheckResults('Director Jobs');
$jobs = DirectorJob::loadAll($this->getConnection());
if (empty($sources)) {
if (empty($jobs)) {
$check->warn('No Jobs have been defined');
return $check;
}