Skip to content

Commit

Permalink
Merge pull request civicrm#19011 from demeritcowboy/event-enotice
Browse files Browse the repository at this point in the history
E_NOTICE when deleting participant
  • Loading branch information
eileenmcnaughton authored Nov 21, 2020
2 parents b316694 + 2349871 commit 3dc0e9d
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 3dc0e9d

Please sign in to comment.