From a1273acf54c1adbf0946856e0b70412f9b95f7f3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 14 Nov 2016 15:11:50 +0100 Subject: [PATCH] Fix wrong indexing for categories array in calendar category report --- calendar/inc/class.calendar_category_report.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_category_report.inc.php b/calendar/inc/class.calendar_category_report.inc.php index b4b74c0d5a..267c185c6f 100644 --- a/calendar/inc/class.calendar_category_report.inc.php +++ b/calendar/inc/class.calendar_category_report.inc.php @@ -153,7 +153,7 @@ class calendar_category_report extends calendar_ui{ else { list($button) = @each($content['button']); - $result = $categories = array (); + $result = $categories = $content_rows = array (); $users = array_keys($GLOBALS['egw']->accounts->search(array('type'=>'accounts', active=>true))); // report button pressed @@ -168,7 +168,7 @@ class calendar_category_report extends calendar_ui{ { if ($row['enable']) { - $categories [$key] = $row['cat_id']; + $categories [] = $content_rows [$key] = $row['cat_id']; } } @@ -186,7 +186,7 @@ class calendar_category_report extends calendar_ui{ { if (is_array($day_events)) { - foreach ($categories as $row_id => $cat_id) + foreach ($content_rows as $row_id => $cat_id) { $this->process_days( $weeks_sum,