Skip to content
Snippets Groups Projects
Commit f0da41da authored by eileen's avatar eileen
Browse files

#1047 Fix instance of null contamination

parent 2dfe802e
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
......@@ -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') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment