From: Jan Schneider Date: Mon, 18 Oct 2010 23:27:13 +0000 (+0200) Subject: Fix method call. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a8e28144a18b114e311d0d2c04c1c18e3a53e9f5;p=horde.git Fix method call. Reset attributes and components. --- 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) {