using new Horde code in vendor: fix PHP Fatal error: Cannot access protected property Horde_Icalendar_Vevent::$_attributes

This commit is contained in:
Ralf Becker 2015-06-24 10:46:19 +00:00
parent d9a83ac4aa
commit 3640ef4eb0
2 changed files with 3 additions and 3 deletions

View File

@ -1787,7 +1787,7 @@ class calendar_ical extends calendar_boupdate
static function valarm2egw(&$alarms, &$valarm) static function valarm2egw(&$alarms, &$valarm)
{ {
$count = 0; $count = 0;
foreach ($valarm->_attributes as $vattr) foreach ($valarm->getAllAttributes() as $vattr)
{ {
switch ($vattr['name']) switch ($vattr['name'])
{ {
@ -2399,7 +2399,7 @@ class calendar_ical extends calendar_boupdate
return false; // not a valid entry return false; // not a valid entry
} }
// lets see what we can get from the vcard // lets see what we can get from the vcard
foreach ($component->_attributes as $attributes) foreach ($component->getAllAttributes() as $attributes)
{ {
switch ($attributes['name']) switch ($attributes['name'])
{ {

View File

@ -1092,7 +1092,7 @@ class infolog_ical extends infolog_bo
$note = array(); $note = array();
$note['info_type'] = 'note'; $note['info_type'] = 'note';
foreach ($component->_attributes as $attribute) foreach ($component->getAllAttributes() as $attribute)
{ {
switch ($attribute['name']) switch ($attribute['name'])
{ {