From 94a287afc693cd0333e11f39af12f59bff397090 Mon Sep 17 00:00:00 2001 From: JodliDev Date: Mon, 25 Apr 2022 09:43:10 +0200 Subject: [PATCH] See https://git.kolab.org/rRPK38b103430bf838061ef78c804e225c36a74ee217 --- calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar.php b/calendar.php index d12bfba..f1e4819 100644 --- a/calendar.php +++ b/calendar.php @@ -2402,7 +2402,7 @@ $("#rcmfd_new_category").keypress(function(event) { } // set new organizer identity - if ($organizer !== false && $identity) { + if ($organizer !== false && !empty($identity)) { $event['attendees'][$organizer]['name'] = $identity['name']; $event['attendees'][$organizer]['email'] = $identity['email']; } @@ -2412,7 +2412,7 @@ $("#rcmfd_new_category").keypress(function(event) { unset($event['attendees'][$owner]['rsvp']); } // fallback to the selected identity - else if ($organizer === false && $identity) { + else if ($organizer === false && !empty($identity)) { $event['attendees'][] = [ 'role' => 'ORGANIZER', 'name' => $identity['name'],