From: yashodha Date: Mon, 6 May 2013 05:39:04 +0000 (+0530) Subject: notice fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=80673b70411e6320f5e8ff38c1f2a7494727f97c;p=civicrm-core.git notice fix --- diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 91eebcd0fa..b9b36cb4eb 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1133,7 +1133,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP if ($val && $submittedValues['soft_credit_amount'][$key]) { $softParams[$key]['contact_id'] = $val; $softParams[$key]['amount'] = $submittedValues['soft_credit_amount'][$key]; - if ($submittedValues['soft_credit_id'][$key]) { + if (!empty($submittedValues['soft_credit_id'][$key])) { $softParams[$key]['id'] = $submittedValues['soft_credit_id'][$key]; } }