From af87e8c6216414cfb527690d1944322c65dcba39 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Fri, 10 Jul 2020 08:30:57 +0200 Subject: [PATCH] fixed errors in dashboard widget groups status --- .../include/lib/Dashboard/Widgets/system_group_status.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php b/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php index 8f0bbc00bb..e15811bb9f 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php +++ b/pandora_console/include/lib/Dashboard/Widgets/system_group_status.php @@ -183,7 +183,9 @@ class SystemGroupStatusWidget extends Widget $values = parent::decoders($decoder); if (isset($decoder['status']) === true) { - if (is_array($decoder['status']) === true) { + if (is_array($decoder['status']) === true + && count($decoder['status']) > 1 + ) { $compatibilityStatus = []; foreach ($decoder['status'] as $key => $value) { switch ((int) $value) {