From e3eed0533cb2eda0ebfbed3eb7e21d9c59240860 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 23 Oct 2011 08:35:38 +0000 Subject: [PATCH] seems iCalendar::getAttribute() can return a PEAR_Error too --- infolog/inc/class.infolog_ical.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolog/inc/class.infolog_ical.inc.php b/infolog/inc/class.infolog_ical.inc.php index 0e9330e8c8..094c3f0c15 100644 --- a/infolog/inc/class.infolog_ical.inc.php +++ b/infolog/inc/class.infolog_ical.inc.php @@ -641,7 +641,7 @@ class infolog_ical extends infolog_bo case 'STATUS': // check if we (still) have X-INFOLOG-STATUS set AND it would give an unchanged status (no change by the user) $taskData['info_status'] = $this->vtodo2status($attribute['value'], - ($attr=$component->getAttribute('X-INFOLOG-STATUS')) ? $attr['value'] : null); + ($attr=$component->getAttribute('X-INFOLOG-STATUS')) && is_array($attr) ? $attr['value'] : null); break; case 'SUMMARY':