seems iCalendar::getAttribute() can return a PEAR_Error too

This commit is contained in:
Ralf Becker 2011-10-23 08:35:38 +00:00
parent b599d4a4e2
commit e3eed0533c

View File

@ -641,7 +641,7 @@ class infolog_ical extends infolog_bo
case 'STATUS': case 'STATUS':
// check if we (still) have X-INFOLOG-STATUS set AND it would give an unchanged status (no change by the user) // 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'], $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; break;
case 'SUMMARY': case 'SUMMARY':