From: Atif Shaikh Date: Mon, 14 Apr 2014 07:41:38 +0000 (+0530) Subject: CRM-13833 - Further Changes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c411c28a6a7e79f807665de954d20cb13f83e059;p=civicrm-core.git CRM-13833 - Further Changes ---------------------------------------- * CRM-13833: Implement Soft Credit Types https://issues.civicrm.org/jira/browse/CRM-13833 --- diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index 1c3849485c..c7ba92afc8 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -315,13 +315,13 @@ function _civicrm_api3_deprecated_formatted_param($params, &$values, $create = F //when update mode check contribution id or trxn id or //invoice id $contactId = new CRM_Contribute_DAO_Contribution(); - if ($params['contribution_id']) { + if (!empty($params['contribution_id'])) { $contactId->id = $params['contribution_id']; } - elseif ($params['trxn_id']) { + elseif (!empty($params['trxn_id'])) { $contactId->trxn_id = $params['trxn_id']; } - elseif ($params['invoice_id']) { + elseif (!empty($params['invoice_id'])) { $contactId->invoice_id = $params['invoice_id']; } if ($contactId->find(TRUE)) {