Fixed auto combined graph in metaconsole

Former-commit-id: c0e819e35fbb5952fa8ce2806e9cddff521a5131
This commit is contained in:
Daniel Maya 2019-01-28 18:05:46 +01:00
parent 042bf1c6e7
commit e03b62d168
1 changed files with 2 additions and 2 deletions

View File

@ -6397,7 +6397,7 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
$graphs[0]["fullscale"] = $content['style']['fullscale'];
$modules = $content['id_agent_module'];
if(!$modules){
if(!$modules || !is_array($modules)) {
$module_source = db_get_all_rows_sql(
"SELECT id_agent_module, id_server
FROM tgraph_source