diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 72c5d31780..f6db48fedc 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -436,7 +436,7 @@ class calendar_bo //echo "

remove_rejected_by_user=$remove_rejected_by_user, filter=$filter, params[users]=".print_r($param['users'])."

\n"; foreach($events as $id => $event) { - if (isset($start) && $event['start'] < $start) + if (isset($start) && $event['end'] < $start) { unset($events[$id]); // remove former events (e.g. whole day) $this->total--;