diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-11 01:29:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 01:29:15 +0300 |
commit | 5a1185f2fd9ddb851eed5962fa2d3091b76decac (patch) | |
tree | 70e489d7f7d85c420597fe99e9a8ef9e22a40470 | |
parent | 35b9f610d0ab8aab333a3a079290249517a04531 (diff) | |
parent | 33d003d032b245688d6ef69d3773ac0fc6fcdc7d (diff) |
Merge pull request #32585 from nextcloud/backport/32580/stable24
[stable24] Fix handling events without names in activities
-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 |