This commit is contained in:
parent
72e7983d75
commit
94a287afc6
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue