From 2172ad293f1876bbaaab067e6a630ea78e9aa0ae Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 24 Jul 2023 10:13:18 +0200 Subject: [PATCH] php8 warnings --- plugins/libkolab/lib/kolab_format_xcal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php index 6cee7b6d..a6ba7193 100644 --- a/plugins/libkolab/lib/kolab_format_xcal.php +++ b/plugins/libkolab/lib/kolab_format_xcal.php @@ -347,7 +347,7 @@ abstract class kolab_format_xcal extends kolab_format $this->obj->setSummary($object['title']); $this->obj->setLocation($object['location'] ?? null); - $this->obj->setDescription($object['description']); + $this->obj->setDescription($object['description'] ?? null); $this->obj->setPriority($object['priority'] ?? null); $this->obj->setCategories(self::array2vector($object['categories'] ?? null)); $this->obj->setUrl(strval($object['url'] ?? null)); @@ -367,7 +367,7 @@ abstract class kolab_format_xcal extends kolab_format && (empty($object['organizer']['email']) || $attendee['email'] != $object['organizer']['email']) ) { $cr = new ContactReference(ContactReference::EmailReference, $attendee['email']); - $cr->setName($attendee['name']); + $cr->setName($attendee['name'] ?? null); // set attendee RSVP if missing if (!isset($attendee['rsvp'])) {