readd missing key (#15291)

* readd missing key

* .
This commit is contained in:
SourceDoctor
2023-09-06 23:08:07 +02:00
committed by GitHub
parent 6d4e1f8d93
commit 013096c092

View File

@@ -95,7 +95,8 @@ class AvailabilityMapController extends WidgetController
// process status
$uptime_warn = (int) Config::get('uptime_warning', 86400);
$check_maintenance = AlertSchedule::isActive()->exists(); // check if any maintenance schedule is active
$totals = ['warn' => 0, 'up' => 0, 'down' => 0, 'maintenance' => 0, 'ignored-up' => 0, 'ignored-down' => 0, 'disabled' => 0];
// TODO: take a deeper look, why key ignored still has to exist
$totals = ['warn' => 0, 'up' => 0, 'down' => 0, 'maintenance' => 0, 'ignored' => 0, 'ignored-up' => 0, 'ignored-down' => 0, 'disabled' => 0];
$data = [];
foreach ($devices as $device) {