Only average token for graphs fix - #1460

This commit is contained in:
enriquecd 2017-11-08 10:40:03 +01:00
parent ebc209e7eb
commit 24770c79ac

View File

@ -139,15 +139,15 @@ $alias = db_get_value ("alias","tagente","id_agente",$id_agent);
$draw_alerts = get_parameter("draw_alerts", 0); $draw_alerts = get_parameter("draw_alerts", 0);
if(isset($config['only_average'])){ if(isset($config['only_average']) && $config['only_average']){
$avg_only = 1; $avg_only = 1;
} }
else { else {
$avg_only = 0; $avg_only = 0;
} }
$show_other = get_parameter('show_other'); $show_other = get_parameter('show_other');
if (isset($show_other)) { if (isset($show_other) && $show_other) {
$avg_only = $show_other; $avg_only = $show_other;
} }