Fixed labels in pie custom graphs. Ticket #3873.

This commit is contained in:
Daniel Maya 2016-06-30 10:45:41 +02:00
parent 9abcfbf1b3
commit 834612f125
1 changed files with 5 additions and 5 deletions

View File

@ -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,