From 34caeb13c23a0056a81236fd26d73a0257f43cfe Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 24 Mar 2015 11:47:39 +0100 Subject: [PATCH] Working in the new feature. --- .../include/functions_reporting.php | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 0f7f2168fa..a9d0861710 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -168,22 +168,15 @@ function reporting_general($report, $content, $type = 'dinamic') { $report, $content); + $generals = db_get_all_rows_filter( + 'treport_content_item', + array('id_report_content' => $content['id_rc'])); + if (empty($generals)) { + $generals = array(); + } + switch ($content['group_by_agent']) { case REPORT_GENERAL_NOT_GROUP_BY_AGENT: - $sql = sprintf(" - SELECT id_agent_module, - server_name, operation - FROM treport_content_item - WHERE id_report_content = %d", - $content['id_rc']); - $generals = db_process_sql ($sql); - $generals = db_get_all_rows_filter( - 'treport_content_item', - array('id_report_content' => $content['id_rc'])); - if (empty($generals)) { - $generals = array(); - } - foreach ($generals as $key => $row) { //Metaconsole connection $server_name = $row ['server_name']; @@ -381,10 +374,6 @@ function reporting_general($report, $content, $type = 'dinamic') { break; } - if ($content['show_resume'] && count($return["data"]) > 0) { - - } - return reporting_check_structure_content($return); }