Merge branch '1460-4706-No-funciona-token-Mostrar-solo-la-media-en-Visual-Styles' into 'develop'

Only average token for graphs fix - #1460

See merge request artica/pandorafms!1040
This commit is contained in:
vgilc 2017-12-21 10:42:12 +01:00
commit 3dad6d1837
1 changed files with 3 additions and 3 deletions

View File

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