mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed labels in pie custom graphs. Ticket #3873.
This commit is contained in:
parent
9abcfbf1b3
commit
834612f125
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user