summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-05-08 07:07:29 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-05-08 07:07:29 (GMT)
commitf4d6dda84108ddf969dbee264b05cff2dfc181f4 (patch)
treea2fb80e75740722bec87ddf426b8153df6d404df
parent5428c60776422f8709263a5c5cac7077b24f6e0f (diff)
downloadroundcubemail-plugins-kolab-f4d6dda84108ddf969dbee264b05cff2dfc181f4.tar.gz
Fix stupidy
-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 9e3e05a..74db88b 100644
--- a/plugins/calendar/drivers/database/database_driver.php
+++ b/plugins/calendar/drivers/database/database_driver.php
@@ -528,6 +528,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);
@@ -555,7 +556,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;
}