From 834612f125b3de5ed5f77fa958b15ec45b8ceb6e Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 30 Jun 2016 10:45:41 +0200 Subject: [PATCH] Fixed labels in pie custom graphs. Ticket #3873. --- pandora_console/include/functions_graph.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 68f4b4f6de..ae61d3a280 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1584,12 +1584,12 @@ function graphic_combined_module ($module_list, $weight_list, $period, $value = false; } $total_modules += $value; - - if ( !empty($labels) && isset($labels[$module]) ) - $label = io_safe_input($labels[$module]); - else { + + if ( !empty($labels) && isset($labels[$module]) ){ + $label = io_safe_output($labels[$module]); + }else { $agent_name = agents_get_name($data_module['id_agente']); - $label = $agent_name . ": " . $data_module['nombre']; + $label = io_safe_output($agent_name . ": " . $data_module['nombre']); } $temp[$label] = array('value'=>$value,