plugins/calendar

Thomas Brüderli bruederli at kolabsys.com
Tue Oct 30 16:10:25 CET 2012


 plugins/calendar/drivers/database/database_driver.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 075748b076f8953dcc7e9940c74d80923d93823d
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Tue Oct 30 16:10:12 2012 +0100

    Fix computation of new COUNT value for recurrence rules

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 . "





More information about the commits mailing list