Fix bug counting events in event reports #4239

This commit is contained in:
enriquecd 2016-12-16 17:25:45 +01:00
parent 5d0ab06295
commit f100a6be1f
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}