From b24415fee1438d321407dee8739733092ac0b90a Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Thu, 5 Dec 2024 11:56:05 -0500 Subject: [PATCH] fix: php deprecation of array as false --- includes/payments/actions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/payments/actions.php b/includes/payments/actions.php index 7cc64e11a5..c30ffefe1b 100644 --- a/includes/payments/actions.php +++ b/includes/payments/actions.php @@ -265,6 +265,7 @@ function give_refresh_thismonth_stat_transients( $payment_ID ) { * Add support to get all payment meta. * Note: only use for internal purpose * + * @unreleased change $donor_data['address'] to array instead of false * @since 2.0 * * @param $check @@ -362,7 +363,7 @@ function ( &$meta, $key ) { // User ID. $donor_data['id'] = $donation->user_id; - $donor_data['address'] = false; + $donor_data['address'] = []; // Address1. $address1 = ! empty( $payment_meta['_give_donor_billing_address1'] ) ? $payment_meta['_give_donor_billing_address1'] : '';