Skip to content

Commit

Permalink
E_NOTICE when deleting participant
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Nov 21, 2020
1 parent b316694 commit 2349871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Event/Form/Participant.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ public static function formRule($values, $files, $self) {
// $values['event_id'] is empty, then return
// instead of proceeding further.

if ((CRM_Utils_Array::value('_qf_Participant_next', $values) == 'Delete') ||
(!$values['event_id'])
if ((($values['_qf_Participant_next'] ?? NULL) === 'Delete') ||
empty($values['event_id'])
) {
return TRUE;
}
Expand Down

0 comments on commit 2349871

Please sign in to comment.