From 32678401e80e5bf2432e63eaa764222a5a5de556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Tue, 18 May 2010 15:12:51 +0000 Subject: [PATCH] Fix calendar_bo::search() issue with events outside the search window (bug#8090) --- calendar/inc/class.calendar_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--;