Fix for Cisco group device health tab (#14265)

* Fix Cisco group devices health tab

* Fix indent

* Ternary if

* Update health.inc.php

* Update health.inc.php

* Update health.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Félix Bouynot
2022-09-01 19:30:00 +02:00
committed by GitHub
parent f85064bdea
commit f0c92d02c8

View File

@@ -38,7 +38,7 @@ if ($device['os_group'] == 'cisco') {
$component = new LibreNMS\Component();
$components = $component->getComponents($device['device_id'], ['type'=> 'cisco-qfp']);
$components = $components[$device['device_id']];
$qfp = count($components);
$qfp = isset($components) ? count($components) : 0;
}
unset($datas);