fixed error automatic combined graph

This commit is contained in:
daniel 2018-08-21 10:54:36 +02:00
parent fac1b3b616
commit 8e845d2948
1 changed files with 12 additions and 6 deletions

View File

@ -6303,14 +6303,20 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
$graphs[0]["summatory_series"] = '';
$graphs[0]["average_series"] = '';
$graphs[0]["modules_series"] = '';
foreach ($content['id_agent_module'] as $key => $value) {
if($content['each_agent']){
$modules[] = $value;
}
else{
$modules[] = $value['module'];
$graphs[0]["fullscale"] = $content['style']['fullscale'];
if(is_array($content['id_agent_module'])){
foreach ($content['id_agent_module'] as $key => $value) {
if($content['each_agent']){
$modules[] = $value;
}
else{
$modules[] = $value['module'];
}
}
}
else{
$modules[] = $content['id_agent_module'];
}
$id_graph = 0;
}
else {