mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix SQL error caused by trying to attached files, if we have no event id
This commit is contained in:
parent
f7f4f2d07a
commit
4ce11e1468
@ -804,7 +804,10 @@ class calendar_ical extends calendar_boupdate
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'ATTACH':
|
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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user