CRM-15745 - CiviEvent - define $pending earlier in postProcess to avoid an 'undefined...
authorJon goldberg <jon@palantetech.coop>
Sun, 15 Feb 2015 04:32:48 +0000 (23:32 -0500)
committerJon goldberg <jon@palantetech.coop>
Sun, 15 Feb 2015 04:32:48 +0000 (23:32 -0500)
CRM/Event/Form/Registration/Confirm.php

index 4ba0188f9cca4bd0421d25c7a4d4c90a40280fe0..515e128176d451f32cd369cc3e990a6b59aeb017 100644 (file)
@@ -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']) ||