From 85b851a7df188e7f806dee22c382b49defbedfe6 Mon Sep 17 00:00:00 2001 From: AlessioDiPretoroAsdea Date: Mon, 30 Mar 2026 09:30:41 +0200 Subject: [PATCH] fix(dav): Avoid fatal error for events without an organizer Signed-off-by: AlessioDiPretoroAsdea --- apps/dav/lib/CalDAV/Schedule/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/Schedule/Plugin.php b/apps/dav/lib/CalDAV/Schedule/Plugin.php index ae3e1fc92b20d..ac230901c0d03 100644 --- a/apps/dav/lib/CalDAV/Schedule/Plugin.php +++ b/apps/dav/lib/CalDAV/Schedule/Plugin.php @@ -765,7 +765,7 @@ private function handleSameOrganizerException( $addresses = $this->getAddressesForPrincipal($calendarNode->getOwner()); foreach ($vCal->VEVENT as $vevent) { - if (in_array($vevent->ORGANIZER->getNormalizedValue(), $addresses, true)) { + if (isset($vevent->ORGANIZER) && in_array($vevent->ORGANIZER->getNormalizedValue(), $addresses, true)) { // User is an organizer => throw the exception throw $e; }