From 4e13824fc5ff371a16d90322e726dc12a48a0300 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 3 May 2011 17:33:50 +0000 Subject: [PATCH] patch #2953: limit calculation of exceptions in recuring event to horizont --- calendar/inc/class.calendar_bo.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 3b57a26877..ee4282fa33 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -705,7 +705,8 @@ class calendar_bo $events = array(); $this->insert_all_recurrences($event,$start,$this->date2usertime($this->config['horizont']),$events); - $days = $this->so->get_recurrence_exceptions($event); // content of array is in server-time! + $limit = min($this->config['horizont'], $event['end']); + $days = $this->so->get_recurrence_exceptions($event, null, $start, $limit); // content of array is in server-time! //error_log('set_recurrences: days=' . array2string($days) ); foreach($events as $event) {