From c411c28a6a7e79f807665de954d20cb13f83e059 Mon Sep 17 00:00:00 2001 From: Atif Shaikh Date: Mon, 14 Apr 2014 13:11:38 +0530 Subject: [PATCH] CRM-13833 - Further Changes ---------------------------------------- * CRM-13833: Implement Soft Credit Types https://issues.civicrm.org/jira/browse/CRM-13833 --- CRM/Utils/DeprecatedUtils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) { -- 2.25.1