Catch parse errors of recurrence exceptions in iCal files
This commit is contained in:
parent
9d3a665d9c
commit
d735c4721e
1 changed files with 6 additions and 1 deletions
|
@ -320,8 +320,13 @@ class libvcalendar implements Iterator
|
|||
if ($object['recurrence']) {
|
||||
foreach ($vobject->children as $component) {
|
||||
if ($component->name == 'VEVENT' && isset($component->{'RECURRENCE-ID'})) {
|
||||
try {
|
||||
$object['recurrence']['EXCEPTIONS'][] = $this->_to_array($component);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
console("iCal data parse error: " . $e->getMessage(), $component->serialize());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue