From b0c462acc432e4ccfc2f05592e1a2a5e28d2b020 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 12 Nov 2015 06:51:19 -0800 Subject: [PATCH] code comments --- CRM/Event/Form/Registration/Register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 89c6f573ed..7108a93b6b 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -1061,7 +1061,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $invoiceID = md5(uniqid(rand(), TRUE)); $this->set('invoiceID', $invoiceID); - if (is_array($this->_paymentProcessor)) { + if ($this->_paymentProcessor) { $payment = $this->_paymentProcessor['object']; $payment->setBaseReturnUrl('civicrm/event/register'); } -- 2.25.1