diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-24 17:04:56 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-05-24 17:04:56 +0200 |
commit | ba684f5c58de8679441e9e63859e93c0c9eeac9d (patch) | |
tree | 9f26e2e986d6e02fc9dc48f174bf7a3c6887a010 /apps | |
parent | 53577ab34ae3e59b62fb57d35112b8f8d49d6de3 (diff) | |
download | nextcloud-server-ba684f5c58de8679441e9e63859e93c0c9eeac9d.tar.gz nextcloud-server-ba684f5c58de8679441e9e63859e93c0c9eeac9d.zip |
Fix handling events without names in activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Activity/Provider/Event.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Event.php b/apps/dav/lib/CalDAV/Activity/Provider/Event.php index 96366f54942..5789a1f220f 100644 --- a/apps/dav/lib/CalDAV/Activity/Provider/Event.php +++ b/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 |