Fix iCal import/export to pass tests again
This commit is contained in:
parent
2605138b08
commit
3b0bfb8775
1 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ class libvcalendar implements Iterator
|
|||
$this->method = strval($vobject->METHOD);
|
||||
$this->agent = strval($vobject->PRODID);
|
||||
|
||||
foreach ($vobject->getBaseComponents() ?: $vobject->getComponents() as $ve) {
|
||||
foreach ($vobject->getComponents() as $ve) {
|
||||
if ($ve->name == 'VEVENT' || $ve->name == 'VTODO') {
|
||||
// convert to hash array representation
|
||||
$object = $this->_to_array($ve);
|
||||
|
@ -1153,7 +1153,7 @@ class libvcalendar implements Iterator
|
|||
|
||||
if ($event['organizer']) {
|
||||
$ve->add('ORGANIZER', 'mailto:' . $event['organizer']['email'],
|
||||
array_filter(self::map_keys($event['organizer'], $this->attendee_keymap)));
|
||||
array_filter(self::map_keys($event['organizer'], array('name' => 'CN'))));
|
||||
}
|
||||
|
||||
foreach ((array)$event['url'] as $url) {
|
||||
|
|
Loading…
Add table
Reference in a new issue