[FIX] Illegal offset

Fixes #1382 once merged.
This commit is contained in:
Sebastian Grewe 2014-01-13 12:42:55 +01:00
parent 4be76130cb
commit 175402fa85

View File

@ -27,10 +27,9 @@ $cron_errors = 0;
$cron_disabled = 0;
foreach ($aCrons as $strCron) {
$status = $monitoring->getStatus($strCron . '_status');
$disabled = $monitoring->isDisabled($strCron);
if ($status['value'] != 0)
$cron_errors++;
if ($disabled['value'] == 1)
if ($monitoring->isDisabled($strCron) == 1)
$cron_disabled++;
}
$smarty->assign('CRON_ERROR', $cron_errors);