mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
Fixed labels in pie custom graphs. Ticket #3873.
This commit is contained in:
parent
9abcfbf1b3
commit
834612f125
@ -1585,11 +1585,11 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
}
|
}
|
||||||
$total_modules += $value;
|
$total_modules += $value;
|
||||||
|
|
||||||
if ( !empty($labels) && isset($labels[$module]) )
|
if ( !empty($labels) && isset($labels[$module]) ){
|
||||||
$label = io_safe_input($labels[$module]);
|
$label = io_safe_output($labels[$module]);
|
||||||
else {
|
}else {
|
||||||
$agent_name = agents_get_name($data_module['id_agente']);
|
$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,
|
$temp[$label] = array('value'=>$value,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user