From: Eileen McNaughton Date: Fri, 1 Apr 2022 03:27:23 +0000 (+1300) Subject: Remove last pay_later_text isset X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c89b524d81039538e242b1a159dde97b003cb95d;p=civicrm-core.git Remove last pay_later_text isset --- diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index f1fcdc57ce..f97dfef227 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -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);