Calendar: Fix incorrect extra user as participant

This commit is contained in:
nathan 2023-11-15 11:16:53 -07:00
parent f039723e39
commit be243c9aa7

View File

@ -457,7 +457,8 @@ class calendar_uiforms extends calendar_ui
case 'participant': case 'participant':
foreach($data as $participant) foreach($data as $participant)
{ {
if (is_null($participant)) // Participant widget returns "" when no value is selected
if(is_null($participant) || !trim($participant))
{ {
continue; continue;
} }