diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-05-25 09:11:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 09:11:05 +0200 |
commit | 95f390d36815e6aabfd09b39bbeaed5bf9d46c55 (patch) | |
tree | 2762fd422239fc123e23bd651dc2ca8f8b476072 /apps/dav | |
parent | d32f683ad6353beb247c609dec990243668d842e (diff) | |
parent | 2c670f9cf96f7c40860f4a81a5a855c78215e7d2 (diff) | |
download | nextcloud-server-95f390d36815e6aabfd09b39bbeaed5bf9d46c55.tar.gz nextcloud-server-95f390d36815e6aabfd09b39bbeaed5bf9d46c55.zip |
Merge pull request #32580 from nextcloud/bugfix/noid/fix-handling-events-without-name
Fix handling events without names in activities
Diffstat (limited to 'apps/dav')
-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..3ed591219af 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' => trim($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 |