From 303b910527ae55d030ae8b79c10edec55a389e73 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 22 May 2023 19:33:25 +0200 Subject: [PATCH] #11318 fixed error 500 --- .../godmode/reporting/reporting_builder.list_items.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.list_items.php b/pandora_console/godmode/reporting/reporting_builder.list_items.php index 238f020004..a0c6004e20 100755 --- a/pandora_console/godmode/reporting/reporting_builder.list_items.php +++ b/pandora_console/godmode/reporting/reporting_builder.list_items.php @@ -518,8 +518,9 @@ foreach ($items as $item) { } $agent_name_db = implode('
', $agent_name_db); - - $module_name_db = implode('
', $modules); + if (is_array($modules) === true) { + $module_name_db = implode('
', $modules); + } } else { $agent_id = agents_get_agent_id_by_module_id($item['id_agent_module']); $agent_name = agents_get_name($agent_id);