From 31cf9f91d28bc80cd9b9dc850dbda1eb241d4b3e Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 29 Aug 2011 11:44:58 +0000 Subject: [PATCH] 2011-08-29 Miguel de Dios * include/functions_visual_map.php: fixed the clean $id_agent var for each iteration. Fixes: #3400111 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4835 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_visual_map.php | 1 + 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b480ce1d74..8c63012ce3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-08-29 Miguel de Dios + + * include/functions_visual_map.php: fixed the clean $id_agent var for + each iteration. + + Fixes: #3400111 + 2011-08-29 Junichi Satoh * godmode/massive/massive_add_alerts.php: Added group recursion diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 6439e53128..8a2d4477fc 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -467,6 +467,7 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line if ($layout_datas !== false) { foreach ($layout_datas as $layout_data) { + $id_agent = 0; $layout_data['label'] = io_safe_output($layout_data['label']); // **************************************************************** // Get parent status (Could be an agent, module, map, others doesnt have parent info)