Skip to content

Commit

Permalink
fix: php deprecation of array as false
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Dec 5, 2024
1 parent b2ac543 commit b24415f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/payments/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'] : '';
Expand Down

0 comments on commit b24415f

Please sign in to comment.