forked from extern/egroupware
fix SQL error caused by trying to attached files, if we have no event id
This commit is contained in:
parent
8464f7ae39
commit
d96c3f84de
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user