CRM-16555 fix for pay later processor not having an object
authoreileenmcnaughton <eileen@fuzion.co.nz>
Fri, 12 Jun 2015 00:49:17 +0000 (00:49 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Fri, 12 Jun 2015 00:49:17 +0000 (00:49 +0000)
CRM/Core/Payment/Form.php

index 19599e6dfb1e0f8de6b873b259af42c05c0ae13b..3397f93ae4ffcbee6e671d7def0ee59e88850b96 100644 (file)
@@ -260,7 +260,7 @@ class CRM_Core_Payment_Form {
       $form->assign('profileAddressFields', $profileAddressFields);
     }
 
-    if ($processor['object']->buildForm($form)) {
+    if (!empty($processor['object']) && $processor['object']->buildForm($form)) {
       return NULL;
     }