diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 10e68c215c..e7e41cba91 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -734,7 +734,7 @@ class calendar_uiviews extends calendar_ui $days == 1 // Showing just 1 day ) { - $content['view'][] = (array)$this->tagWholeDayOnTop($this->bo->search($search_params)) + + $content['view'][] = $this->tagWholeDayOnTop($this->bo->search($search_params)) + array('owner' => $users); } else @@ -1055,6 +1055,10 @@ class calendar_uiviews extends calendar_ui } } } + else + { + $dayEvents = []; // search returns false or null for nothing found! + } return $dayEvents; } }