From 23498713833beb046ecc7139b60ab492d074b80a Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 21 Nov 2020 09:21:08 -0500 Subject: [PATCH] E_NOTICE when deleting participant --- CRM/Event/Form/Participant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index 71c3204b8ce7..2ab5a13a4091 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -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; }