From 752f450dc0e09842e8c5c31d560ecaf1eb7e0cc2 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Sat, 14 Feb 2015 23:32:48 -0500 Subject: [PATCH] CRM-15745 - CiviEvent - define $pending earlier in postProcess to avoid an 'undefined variable' error in certain flows --- CRM/Event/Form/Registration/Confirm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 4ba0188f9c..515e128176 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -553,6 +553,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { $this->_values['event'] ); + $pending = FALSE; if ($this->_allowWaitlist || $this->_requireApproval) { //get the participant statuses. $waitingStatuses = CRM_Event_PseudoConstant::participantStatus(NULL, "class = 'Waiting'"); @@ -573,7 +574,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { if (is_array($this->_paymentProcessor)) { $payment = CRM_Core_Payment::singleton($this->_mode, $this->_paymentProcessor, $this); } - $pending = FALSE; $result = NULL; if (!empty($value['is_pay_later']) || -- 2.25.1