Enotice fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 5 May 2015 08:10:10 +0000 (20:10 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 5 May 2015 08:10:10 +0000 (20:10 +1200)
CRM/Core/Payment.php

index 992a8b1751224d7ef884400304c1aa040995ef7c..a97b96d78a2877df1ae017109786b13544cdfec0 100644 (file)
@@ -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);
         }