fix SQL error caused by trying to attached files, if we have no event id

This commit is contained in:
Ralf Becker 2018-02-02 17:27:59 +01:00
parent f7f4f2d07a
commit 4ce11e1468

View File

@ -804,7 +804,10 @@ class calendar_ical extends calendar_boupdate
break;
case 'ATTACH':
if (!empty($event['id']))
{
Api\CalDAV::add_attach('calendar', $event['id'], $attributes, $parameters);
}
break;
default: