From 9b44a9bbf0d2d37d500b111e959f2c1df5b28f95 Mon Sep 17 00:00:00 2001 From: Wouter H Date: Thu, 16 Aug 2018 10:59:40 +0200 Subject: [PATCH] Fix Undefined index: params in CRM_Event_BAO_Event::buildCustomProfile() Added check to suppress notice: Undefined index: params in CRM_Event_BAO_Event::buildCustomProfile() which comes after returning to site from an online payment provider. --- CRM/Event/BAO/Event.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 203c47f4c2..c525d41276 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1826,7 +1826,10 @@ WHERE id = $cfID $title = $groupTitles = array(); foreach ($additionalIDs as $pId => $cId) { //get the params submitted by participant. - $participantParams = CRM_Utils_Array::value($pId, $values['params'], array()); + $participantParams = NULL; + if(isset($values['params'])) { + $participantParams = CRM_Utils_Array::value($pId, $values['params'], array()); + } list($profilePre, $groupTitles) = self::buildCustomDisplay($preProfileID, 'additionalCustomPre', -- 2.25.1