summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-10-30 15:10:12 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-10-30 15:10:12 (GMT)
commit075748b076f8953dcc7e9940c74d80923d93823d (patch)
tree86c1ef1cd2950845393015626772b527f35ea034
parent9d9262d71f4b405dc8a9193b09f9c0b53fca0578 (diff)
downloadroundcubemail-plugins-kolab-075748b076f8953dcc7e9940c74d80923d93823d.tar.gz
Fix computation of new COUNT value for recurrence rules
-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 f136b00..5aac2dd 100644
--- a/plugins/calendar/drivers/database/database_driver.php
+++ b/plugins/calendar/drivers/database/database_driver.php
@@ -315,7 +315,7 @@ class database_driver extends calendar_driver
// if recurrence COUNT, update value to the correct number of future occurences
if ($event['recurrence']['COUNT']) {
- $fromdate = clone $master['start'];
+ $fromdate = clone $event['start'];
$fromdate->setTimezone($this->server_timezone);
$sqlresult = $this->rc->db->query(sprintf(
"SELECT event_id FROM " . $this->db_events . "