From 3640ef4eb09674ca42adadf35f65961834d6dc47 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Jun 2015 10:46:19 +0000 Subject: [PATCH] using new Horde code in vendor: fix PHP Fatal error: Cannot access protected property Horde_Icalendar_Vevent::$_attributes --- calendar/inc/class.calendar_ical.inc.php | 4 ++-- infolog/inc/class.infolog_ical.inc.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 8799686be1..c685178f00 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -1787,7 +1787,7 @@ class calendar_ical extends calendar_boupdate static function valarm2egw(&$alarms, &$valarm) { $count = 0; - foreach ($valarm->_attributes as $vattr) + foreach ($valarm->getAllAttributes() as $vattr) { switch ($vattr['name']) { @@ -2399,7 +2399,7 @@ class calendar_ical extends calendar_boupdate return false; // not a valid entry } // lets see what we can get from the vcard - foreach ($component->_attributes as $attributes) + foreach ($component->getAllAttributes() as $attributes) { switch ($attributes['name']) { diff --git a/infolog/inc/class.infolog_ical.inc.php b/infolog/inc/class.infolog_ical.inc.php index 81614b20ac..aaeb592c9c 100644 --- a/infolog/inc/class.infolog_ical.inc.php +++ b/infolog/inc/class.infolog_ical.inc.php @@ -1092,7 +1092,7 @@ class infolog_ical extends infolog_bo $note = array(); $note['info_type'] = 'note'; - foreach ($component->_attributes as $attribute) + foreach ($component->getAllAttributes() as $attribute) { switch ($attribute['name']) {