code comments
authoreileen <emcnaughton@wikimedia.org>
Thu, 12 Nov 2015 14:51:19 +0000 (06:51 -0800)
committereileenmcnaugton <eileen@fuzion.co.nz>
Tue, 24 Nov 2015 05:59:27 +0000 (18:59 +1300)
CRM/Event/Form/Registration/Register.php

index 89c6f573ed7e27785830990247547331051d3665..7108a93b6b9f6665fe0ee5a441f14ce8df5413b0 100644 (file)
@@ -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');
       }