Calendar: Fix incorrect extra user as participant

This commit is contained in:
nathan 2023-11-15 11:16:53 -07:00
parent 5a02959468
commit 453486ce19

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;
} }