From b011a8127a089568504dcb3f5d3e1f44582cb3d2 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 7 Sep 2023 14:30:31 +0200 Subject: [PATCH] Fix error when empty group --- pandora_console/include/functions_reporting_html.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index 754a9badb2..2dc0e1cc54 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -2702,8 +2702,13 @@ function reporting_html_group_report($table, $item, $pdf=0) WHERE ta.id_grupo IN ('.$explode_group_id.') GROUP by os.name' ); + if (is_array($group_events_node) === true) { $group_events = array_merge($group_events, $group_events_node); + } + + if (is_array($group_os_node) === true) { $group_os = array_merge($group_os, $group_os_node); + } } catch (\Exception $e) { $nd->disconnect(); } finally {