From f8d813a706590a8182076a5f313e6c1bf0e9a919 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 17 Jun 2019 19:38:56 +1000 Subject: [PATCH] Remove a few more uses --- CRM/Contact/BAO/Contact.php | 4 ++-- CRM/Price/BAO/LineItem.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index b7e5dace12..b4b5c6e2c7 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -369,7 +369,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact { 'subject' => CRM_Utils_Array::value('subject', $note), 'contact_id' => $contactId, ); - CRM_Core_BAO_Note::add($noteParams, CRM_Core_DAO::$_nullArray); + CRM_Core_BAO_Note::add($noteParams); } } else { @@ -386,7 +386,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact { 'subject' => CRM_Utils_Array::value('subject', $params), 'contact_id' => $contactId, ); - CRM_Core_BAO_Note::add($noteParams, CRM_Core_DAO::$_nullArray); + CRM_Core_BAO_Note::add($noteParams); } } diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index b6e95b855c..3859a974b8 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -119,7 +119,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem { * * @return CRM_Price_BAO_LineItem */ - public static function retrieve(&$params, &$defaults) { + public static function retrieve(&$params = [], &$defaults = []) { $lineItem = new CRM_Price_BAO_LineItem(); $lineItem->copyValues($params); if ($lineItem->find(TRUE)) { @@ -1277,7 +1277,7 @@ WHERE li.contribution_id = %1"; $tempFinancialTrxnID = ['id' => $adjustedTrxn->id]; } } - $lineObj = CRM_Price_BAO_LineItem::retrieve($lineParams, CRM_Core_DAO::$_nullArray); + $lineObj = CRM_Price_BAO_LineItem::retrieve($lineParams); // insert financial items // ensure entity_financial_trxn table has a linking of it. CRM_Financial_BAO_FinancialItem::add($lineObj, $updatedContribution, NULL, $tempFinancialTrxnID); -- 2.25.1