From d4cae402edf812c6107b46684fc68fa3dda52d83 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. (cherry picked from commit 834612f125b3de5ed5f77fa958b15ec45b8ceb6e) --- 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 ec0bc36a4f..3cd5d65f79 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1492,12 +1492,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,