JodliDev 2022-04-25 09:43:10 +02:00
parent 72e7983d75
commit 94a287afc6

View file

@ -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'],