mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(dav): Avoid fatal error for events without an organizer
Signed-off-by: AlessioDiPretoroAsdea <alessio.dipretoro@asdeahw.net>
This commit is contained in:
parent
78513504ca
commit
85b851a7df
1 changed files with 1 additions and 1 deletions
|
|
@ -765,7 +765,7 @@ EOF;
|
|||
|
||||
$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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue