From: eileen Date: Thu, 12 Nov 2015 14:51:19 +0000 (-0800) Subject: code comments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b0c462acc432e4ccfc2f05592e1a2a5e28d2b020;p=civicrm-core.git code comments --- 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'); }