mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge pull request #1876 from woocommerce/PCP-2385-disable-funding-field-access
Fix disable-funding field access
This commit is contained in:
commit
0d3a5de0b3
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class PayPalPaymentMethod extends AbstractPaymentMethodType {
|
|||
}
|
||||
}
|
||||
|
||||
$disabled_funding_sources = explode( ',', $script_data['url_params']['disable-funding'] ) ?: array();
|
||||
$disabled_funding_sources = explode( ',', $script_data['url_params']['disable-funding'] ?? '' ) ?: array();
|
||||
$funding_sources = array_values(
|
||||
array_diff(
|
||||
array_keys( $this->all_funding_sources ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue