Fix notice on event registration when payment blocks not present and cid=0
authorDave Greenberg <dave@civicrm.org>
Fri, 23 Aug 2013 23:29:47 +0000 (16:29 -0700)
committerDave Greenberg <dave@civicrm.org>
Fri, 23 Aug 2013 23:29:47 +0000 (16:29 -0700)
CRM/Event/Form/Registration/Register.php

index 91db147f1ffd7797f4c357ec6c9d20c8eb647b63..add14e40aa5f7884493f92a7ee73a4a2c7e9059d 100644 (file)
@@ -403,6 +403,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
     $pps = array();
     //@todo this processor adding fn is another one duplicated on contribute - a shared
     // common class would make this sort of thing extractable
+    $onlinePaymentProcessorEnabled = FALSE;
     if (!empty($this->_paymentProcessors)) {
       foreach ($this->_paymentProcessors as $key => $name) {
         if($name['billing_mode'] == 1) {