From f100a6be1f496b8685d94d3a0cfea488986edf6c Mon Sep 17 00:00:00 2001 From: enriquecd Date: Fri, 16 Dec 2016 17:25:45 +0100 Subject: [PATCH] Fix bug counting events in event reports #4239 --- pandora_console/include/functions_reporting.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index f44d1ed603..a4930ac920 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -1410,6 +1410,8 @@ function reporting_event_report_group($report, $content, metaconsole_restore_db(); } + $return['total_events'] = count($return['data']); + return reporting_check_structure_content($return); } @@ -1454,6 +1456,8 @@ function reporting_event_report_module($report, $content) { metaconsole_restore_db(); } + $return['total_events'] = count($return['data']); + return reporting_check_structure_content($return); } @@ -2270,6 +2274,8 @@ function reporting_event_report_agent($report, $content, metaconsole_restore_db(); } + $return['total_events'] = count($return['data']); + return reporting_check_structure_content($return); }