From 7195b5254796e3beae78dffb08109783dcaabf64 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 16 Oct 2014 17:35:15 +0530 Subject: [PATCH] CRM-14968 --- CRM/Contribute/Form/Contribution/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 75c1c1b1d4..a4af570e96 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -1188,7 +1188,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu if (($this->_values['is_pay_later'] && empty($this->_paymentProcessor) && !array_key_exists('hidden_processor', $params)) || - CRM_Utils_Array::value('payment_processor', $params) == 0) { + (!empty($params['payment_processor']) && $params['payment_processor'] == 0)) { $params['is_pay_later'] = 1; } else { -- 2.25.1