mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix undefined index on billing phone
This commit is contained in:
parent
e65dab755a
commit
b57567cf84
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ class PayUponInvoice {
|
|||
);
|
||||
|
||||
$checkout_fields = WC()->checkout()->get_checkout_fields();
|
||||
$checkout_phone_required = $checkout_fields['billing']['billing_phone']['required'];
|
||||
$checkout_phone_required = $checkout_fields['billing']['billing_phone']['required'] ?? false;
|
||||
if ( ! array_key_exists( 'billing_phone', $checkout_fields['billing'] ) || $checkout_phone_required === false ) {
|
||||
woocommerce_form_field(
|
||||
'billing_phone',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue