Skip to content

Commit 820e091

Browse files
Merge pull request #59299 from AlessioDiPretoroAsdea/fix/suggestion-ticket-59266
dav: Fix fatal error when ORGANIZER is missing in CalDAV schedule
2 parents 22c75f5 + 85b851a commit 820e091

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dav/lib/CalDAV/Schedule/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ private function handleSameOrganizerException(
765765

766766
$addresses = $this->getAddressesForPrincipal($calendarNode->getOwner());
767767
foreach ($vCal->VEVENT as $vevent) {
768-
if (in_array($vevent->ORGANIZER->getNormalizedValue(), $addresses, true)) {
768+
if (isset($vevent->ORGANIZER) && in_array($vevent->ORGANIZER->getNormalizedValue(), $addresses, true)) {
769769
// User is an organizer => throw the exception
770770
throw $e;
771771
}

0 commit comments

Comments
 (0)