fixed error automatic combined graph

This commit is contained in:
daniel 2018-08-21 10:54:36 +02:00
parent fac1b3b616
commit 8e845d2948

View File

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