patch #2953: limit calculation of exceptions in recuring event to horizont

This commit is contained in:
Ralf Becker 2011-05-03 17:33:50 +00:00
parent 9e141e72e0
commit 4e13824fc5

View File

@ -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)
{