Remove last pay_later_text isset
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 1 Apr 2022 03:27:23 +0000 (16:27 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 11 Apr 2022 00:04:48 +0000 (12:04 +1200)
CRM/Event/Form/Registration/Confirm.php

index f1fcdc57ceefcf98e7470cf9c03367b9b2b1c3f6..f97dfef227f688f7fbdd8ad15e95a872c06ce338 100644 (file)
@@ -59,9 +59,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration {
 
     $this->_params[0]['is_pay_later'] = $this->get('is_pay_later');
     $this->assign('is_pay_later', $this->_params[0]['is_pay_later']);
-    if ($this->_params[0]['is_pay_later']) {
-      $this->assign('pay_later_receipt', $this->_values['event']['pay_later_receipt']);
-    }
+    $this->assign('pay_later_receipt', $this->_params[0]['is_pay_later'] ? $this->_values['event']['pay_later_receipt'] : NULL);
 
     CRM_Utils_Hook::eventDiscount($this, $this->_params);