diff --git a/calendar/inc/class.calendar_category_report.inc.php b/calendar/inc/class.calendar_category_report.inc.php index f1fa118773..bb6c71e92a 100644 --- a/calendar/inc/class.calendar_category_report.inc.php +++ b/calendar/inc/class.calendar_category_report.inc.php @@ -397,6 +397,14 @@ class calendar_category_report extends calendar_ui{ foreach ($raw_csv as &$row) { + $check_row = 0; + foreach ($row as $val) + { + $check_row += $val; + } + //check if all values of the row is zero then escape the row + if (!$check_row) continue; + // printout each row into file fputcsv($fp, array_values($row)); }