From 9dd5827240feac87833d3e4542f2e3f537013be4 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 5 May 2015 20:10:10 +1200 Subject: [PATCH] Enotice fix --- CRM/Core/Payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 992a8b1751..a97b96d78a 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -509,7 +509,7 @@ abstract class CRM_Core_Payment { else { $result = $this->doDirectPayment($params, $component); if (is_array($result) && !isset($result['contribution_status_id'])) { - if ($params['is_recur']) { + if (!empty($params['is_recur'])) { // See comment block. $paymentParams['contribution_status_id'] = array_search('Pending', $statuses); } -- 2.25.1