From aacdaf2f061ddb2414f3b62c463c71e231a1db6f Mon Sep 17 00:00:00 2001 From: enriquecd Date: Mon, 19 Dec 2016 17:57:14 +0100 Subject: [PATCH] Events count filter by type in event reports #4261 --- pandora_console/include/functions_reporting_html.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php index ff1ca50e38..2928b50065 100644 --- a/pandora_console/include/functions_reporting_html.php +++ b/pandora_console/include/functions_reporting_html.php @@ -129,7 +129,13 @@ function reporting_html_print_report($report, $mini = false) { $item['date']['to'], $label); - $table->data['description_row']['description'] = $item["description"]." - Total events: ".$item["total_events"]; + if($item["total_events"]){ + $table->data['description_row']['description'] = $item['description']." - Total events: ".$item["total_events"]; + } + else{ + $table->data['description_row']['description'] = $item["description"]; + } + $table->colspan['description_row']['description'] = 3; switch ($item['type']) {