summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-05-08 07:07:29 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2013-06-21 10:04:01 (GMT)
commit6c786252a077409cea0769fda4ec3f27337e8e16 (patch)
treedadeef43ece39743a3657b3b3b8807f38e48e17f /plugins
parentef4a4efd884604da79efe6340e53bd9867bd8a55 (diff)
downloadroundcubemail-plugins-kolab-6c786252a077409cea0769fda4ec3f27337e8e16.tar.gz
Fix stupidy
Diffstat (limited to 'plugins')
-rw-r--r--plugins/calendar/drivers/database/database_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/drivers/database/database_driver.php b/plugins/calendar/drivers/database/database_driver.php
index e1de282..5f00b1d 100644
--- a/plugins/calendar/drivers/database/database_driver.php
+++ b/plugins/calendar/drivers/database/database_driver.php
@@ -534,6 +534,7 @@ class database_driver extends calendar_driver
$recurrence = new calendar_recurrence($this->cal, $event);
+ $count = 0;
$duration = $event['start']->diff($event['end']);
while ($next_start = $recurrence->next_start()) {
$next_start->setTimezone($this->server_timezone);
@@ -561,7 +562,6 @@ class database_driver extends calendar_driver
break;
// stop adding events for inifinite recurrence after 20 years
- $count = 0;
if (++$count > 999 || (!$recurrence->recurEnd && !$recurrence->recurCount && $next_start->format('Y') > date('Y') + 20))
break;
}