From db9dc114fbad496baf9cf50abb7926cdda197266 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Thu, 14 Dec 2017 15:14:46 +0100 Subject: [PATCH] Visual console status calculate errors / 2 - #1698 --- pandora_console/include/functions_visual_map.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 1efecdd14b..803ddc0990 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -3464,13 +3464,16 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0, $elements_in_ return VISUAL_MAP_STATUS_NORMAL; $stcount = 0; - + $stcount_u = 0; foreach ($result as $data) { if ($data['type'] == 0) { $stcount++; + if ($data["id_layout_linked"] == 0 && $data["id_agente_modulo"] == 0 && $data["id_agent"] == 0) { + $stcount_u++; + } } } - if ($stcount == 0) { + if ($stcount == 0 || $stcount_u == $stcount) { return VISUAL_MAP_STATUS_UNKNOWN; } @@ -3817,4 +3820,4 @@ function visual_map_macro($label,$module){ return $label; } -?> +?> \ No newline at end of file