mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
fixed error automatic combined graph
This commit is contained in:
parent
fac1b3b616
commit
8e845d2948
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user