diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 1cb5c0a53b..0708988722 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -804,7 +804,10 @@ class calendar_ical extends calendar_boupdate break; case 'ATTACH': - Api\CalDAV::add_attach('calendar', $event['id'], $attributes, $parameters); + if (!empty($event['id'])) + { + Api\CalDAV::add_attach('calendar', $event['id'], $attributes, $parameters); + } break; default: