From a8e28144a18b114e311d0d2c04c1c18e3a53e9f5 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 19 Oct 2010 01:27:13 +0200 Subject: [PATCH] Fix method call. Reset attributes and components. --- framework/Icalendar/lib/Horde/Icalendar.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/Icalendar/lib/Horde/Icalendar.php b/framework/Icalendar/lib/Horde/Icalendar.php index b5203e744..b61a8e22b 100644 --- a/framework/Icalendar/lib/Horde/Icalendar.php +++ b/framework/Icalendar/lib/Horde/Icalendar.php @@ -546,6 +546,8 @@ class Horde_Icalendar */ public function parsevCalendar($text, $base = 'VCALENDAR') { + $this->_attributes = $this->_components = array(); + if (preg_match('/^BEGIN:' . $base . '(.*)^END:' . $base . '/ism', $text, $matches)) { $container = true; $vCal = $matches[1]; @@ -680,7 +682,7 @@ class Horde_Icalendar break; } $dates = array(); - $separator = $this->isOldFormat() ? ';' : ','; + $separator = $this->oldFormat ? ';' : ','; preg_match_all('/' . $separator . '([^' . $separator . ']*)/', $separator . $value, $values); foreach ($values[1] as $value) { -- 2.11.0