mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Ensure disable_funding
setting exist before getting it
This commit is contained in:
parent
ed40129c44
commit
7270947ac2
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class LoginSellerEndpoint implements EndpointInterface {
|
|||
|
||||
$accept_cards = (bool) ( $data['acceptCards'] ?? true );
|
||||
$funding_sources = array();
|
||||
if ( $this->settings->get( 'disable_funding' ) ) {
|
||||
if ( $this->settings->has( 'disable_funding' ) && $this->settings->get( 'disable_funding' ) ) {
|
||||
$funding_sources = $this->settings->get( 'disable_funding' );
|
||||
if ( ! is_array( $funding_sources ) ) {
|
||||
$funding_sources = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue