*/
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];
break;
}
$dates = array();
- $separator = $this->isOldFormat() ? ';' : ',';
+ $separator = $this->oldFormat ? ';' : ',';
preg_match_all('/' . $separator . '([^' . $separator . ']*)/', $separator . $value, $values);
foreach ($values[1] as $value) {