mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed labels in pie custom graphs. Ticket #3873.
(cherry picked from commit 834612f125b3de5ed5f77fa958b15ec45b8ceb6e)
This commit is contained in:
parent
a770d51c73
commit
d4cae402ed
@ -1492,12 +1492,12 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||||||
$value = false;
|
$value = false;
|
||||||
}
|
}
|
||||||
$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