Reset the Kronolith_Event::allday property when receiving event from iCalendar.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 12 Sep 2010 20:36:24 +0000 (16:36 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 12 Sep 2010 20:36:24 +0000 (16:36 -0400)
Value will be redetermined if needed when Kronolith_Event#isAllDay() is called next

Bug: 9243

kronolith/lib/Event.php

index ed70b8e..b39d401 100644 (file)
@@ -878,6 +878,10 @@ abstract class Kronolith_Event
             }
         } catch (Horde_Icalendar_Exception $e) {}
 
+        // Reset allday flag in case this has changed. Will be recalculated
+        // next time isAllDay() is called.
+        $this->allday = false;
+
         // Start and end date.
         try {
             $start = $vEvent->getAttribute('DTSTART');