minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 7 Jul 2015 10:28:46 +0000 (15:58 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 7 Jul 2015 10:28:46 +0000 (15:58 +0530)
CRM/Contribute/Form/Contribution.php

index d37164e03d902c3c8f64f3103610cdc6b8bdf2d7..9476ac6433c28019430bbdb1d95cfbf71bcf03e1 100644 (file)
@@ -1203,10 +1203,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
       }
 
       $params['pcp'] = !empty($pcp) ? $pcp : NULL;
-      if (!empty($softParams)) {
-        $params['soft_credit'] = $softParams;
-        $params['soft_credit_ids'] = $softIDs;
-      }
+      $params['soft_credit'] = !empty($softParams) ? $softParams : array();
+      $params['soft_credit_ids'] = !empty($softIDs) ? $softIDs : array();
 
       // CRM-5740 if priceset is used, no need to cleanup money.
       if ($priceSetId) {