diff --git a/modules/ppcp-wc-gateway/src/Settings/Settings.php b/modules/ppcp-wc-gateway/src/Settings/Settings.php index 0e71dd3b8..920d411e8 100644 --- a/modules/ppcp-wc-gateway/src/Settings/Settings.php +++ b/modules/ppcp-wc-gateway/src/Settings/Settings.php @@ -159,7 +159,7 @@ class Settings implements ContainerInterface { if ( $this->settings ) { return false; } - $this->settings = get_option( self::KEY, array() ); + $this->settings = (array) get_option( self::KEY, array() ); $defaults = array( 'title' => __( 'PayPal', 'woocommerce-paypal-payments' ),