From d15c7cff49cb403889e1148c1adbf070e19a5951 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 7 Jul 2015 15:58:46 +0530 Subject: [PATCH] minor fix --- CRM/Contribute/Form/Contribution.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index d37164e03d..9476ac6433 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -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) { -- 2.25.1