calendar: handle catchable fatal error while trying to build rule

This commit is contained in:
Klaus Leithoff 2010-10-04 10:07:52 +00:00
parent 850dfec770
commit a5342d2eb1

View File

@ -1584,6 +1584,7 @@ class calendar_bo
*/ */
function recure2string($event) function recure2string($event)
{ {
if (!is_array($event)) return false;
return (string)calendar_rrule::event2rrule($event); return (string)calendar_rrule::event2rrule($event);
} }