diff options
author | Joas Schilling <coding@schilljs.com> | 2022-05-24 17:04:56 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-05-25 07:19:04 +0000 |
commit | d29bb5ff9dea555c6de7fbd354195c2f4acbb8bb (patch) | |
tree | 42d384c99be7d85fa55c1a15b58fc17cdfbc14e0 | |
parent | a15652aaf7b36f920261a3fc1117bfed087f3472 (diff) | |
download | nextcloud-server-d29bb5ff9dea555c6de7fbd354195c2f4acbb8bb.tar.gz nextcloud-server-d29bb5ff9dea555c6de7fbd354195c2f4acbb8bb.zip |
Fix handling events without names in activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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 |