Skip to content

Commit

Permalink
readd missing key (librenms#15291)
Browse files Browse the repository at this point in the history
* readd missing key

* .
  • Loading branch information
SourceDoctor authored Sep 6, 2023
1 parent 6d4e1f8 commit 013096c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Widgets/AvailabilityMapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ private function getDevices(): array
// 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) {
Expand Down

0 comments on commit 013096c

Please sign in to comment.