From ba684f5c58de8679441e9e63859e93c0c9eeac9d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 24 May 2022 17:04:56 +0200 Subject: [PATCH] Fix handling events without names in activities Signed-off-by: Joas Schilling --- apps/dav/lib/CalDAV/Activity/Provider/Event.php | 4 ++-- 1 file 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 -- 2.39.5