mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Check if array key exist before using it
This commit is contained in:
parent
16a48156a5
commit
c2a036c952
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
$this->set_bn_code( $data );
|
||||
|
||||
if ( 'checkout' === $data['context'] ) {
|
||||
if ( '1' === $data['createaccount'] ) {
|
||||
if ( isset( $data['createaccount'] ) && '1' === $data['createaccount'] ) {
|
||||
$this->process_checkout_form_when_creating_account( $data['form'], $wc_order );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue