mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user