From f0da41da6b034ec8addd8ce16cc0b99c516a5d13 Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 15 Jun 2019 21:36:34 -0400 Subject: [PATCH] dev/core#1047 Fix instance of null contamination --- CRM/Core/BAO/FinancialTrxn.php | 2 +- CRM/Financial/BAO/Payment.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/FinancialTrxn.php b/CRM/Core/BAO/FinancialTrxn.php index 6b3d453369..67fdffe05b 100644 --- a/CRM/Core/BAO/FinancialTrxn.php +++ b/CRM/Core/BAO/FinancialTrxn.php @@ -119,7 +119,7 @@ class CRM_Core_BAO_FinancialTrxn extends CRM_Financial_DAO_FinancialTrxn { * * @return \CRM_Financial_DAO_FinancialTrxn */ - public static function retrieve(&$params, &$defaults) { + public static function retrieve(&$params, &$defaults = []) { $financialItem = new CRM_Financial_DAO_FinancialTrxn(); $financialItem->copyValues($params); if ($financialItem->find(TRUE)) { diff --git a/CRM/Financial/BAO/Payment.php b/CRM/Financial/BAO/Payment.php index d08e9c827d..9a463033b6 100644 --- a/CRM/Financial/BAO/Payment.php +++ b/CRM/Financial/BAO/Payment.php @@ -121,7 +121,7 @@ class CRM_Financial_BAO_Payment { // Get the trxn $trxnId = CRM_Core_BAO_FinancialTrxn::getFinancialTrxnId($contribution['id'], 'DESC'); $ftParams = ['id' => $trxnId['financialTrxnId']]; - $trxn = CRM_Core_BAO_FinancialTrxn::retrieve($ftParams, CRM_Core_DAO::$_nullArray); + $trxn = CRM_Core_BAO_FinancialTrxn::retrieve($ftParams); } } elseif ($contributionStatus === 'Pending') { -- 2.25.1