diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 44b6651c3b..48e0182ba1 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -4288,14 +4288,7 @@ function reporting_sql_graph( case 'data': $data = []; - foreach ($modules as $key => $value) { - $data[$value] = modules_get_agentmodule_data( - $value, - $content['period'], - $report['datetime'] - ); - } - + $data = db_get_all_rows_sql($content['external_source']); $return['chart'] = $data; break; }