From: Eileen McNaughton Date: Tue, 5 May 2015 08:10:10 +0000 (+1200) Subject: Enotice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9dd5827240feac87833d3e4542f2e3f537013be4;p=civicrm-core.git Enotice fix --- 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); }