diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index 54005a571a..f5dd4cfe96 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -3399,7 +3399,10 @@ function get_status_color_networkmap_fictional_point($id_networkmap, $parent='') if ($agent['source_data'] == -2) { if (empty($parent) === true) { - $option = json_decode($agent, true); + if (is_array($agent) === false) { + $option = json_decode($agent, true); + } + if ($option['networkmap'] == 0) { $status = 0; } else {