From f0c92d02c834dd432459fa29278cf847f1de75d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bouynot?= Date: Thu, 1 Sep 2022 19:30:00 +0200 Subject: [PATCH] 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 --- includes/html/pages/device/health.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/html/pages/device/health.inc.php b/includes/html/pages/device/health.inc.php index 7236797ecc..82b1169805 100644 --- a/includes/html/pages/device/health.inc.php +++ b/includes/html/pages/device/health.inc.php @@ -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);