mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 07:39:27 +01:00
seems iCalendar::getAttribute() can return a PEAR_Error too
This commit is contained in:
parent
b599d4a4e2
commit
e3eed0533c
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user