Fix handling events without names in activities

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/32580/head
Joas Schilling 3 years ago
parent 53577ab34a
commit ba684f5c58
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 4
      apps/dav/lib/CalDAV/Activity/Provider/Event.php

@ -88,9 +88,9 @@ class Event extends Base {
$params = [
'type' => 'calendar-event',
'id' => $eventData['id'],
'name' => $eventData['name'],
'name' => $eventData['name'] !== '' ? $eventData['name'] : $this->l->t('Untitled event'),
];
if (isset($eventData['link']) && is_array($eventData['link']) && $this->appManager->isEnabledForUser('calendar')) {
try {
// The calendar app needs to be manually loaded for the routes to be loaded

Loading…
Cancel
Save