Skip to content

Commit d532b4a

Browse files
authored
Merge branch 'master' into feature/PLUG-5038
2 parents af8ec3b + e42b801 commit d532b4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/classes/PPMFWC/Hooks/FastCheckout/Exchange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function addAddressToOrder(array $checkoutData, object $order)
3333
'company' => $customerData['company'] ?? '',
3434
'email' => $customerData['email'] ?? '',
3535
'phone' => $customerData['phone'] ?? '',
36-
'address_1' => $billingAddressData['streetName'] . ' ' . $shippingAddressData['streetNumber'] . $shippingAddressData['streetNumberAddition'],
36+
'address_1' => ($billingAddressData['streetName'] ?? '') . ' ' . ($billingAddressData['streetNumber'] ?? '') . ($billingAddressData['streetNumberAddition'] ?? ''),
3737
'address_2' => '',
3838
'city' => $billingAddressData['city'] ?? '',
3939
'state' => '',
@@ -47,7 +47,7 @@ public static function addAddressToOrder(array $checkoutData, object $order)
4747
'company' => $customerData['company'] ?? '',
4848
'email' => $customerData['email'] ?? '',
4949
'phone' => $customerData['phone'] ?? '',
50-
'address_1' => $shippingAddressData['streetName'] . ' ' . $shippingAddressData['streetNumber'] . $shippingAddressData['streetNumberAddition'],
50+
'address_1' => ($shippingAddressData['streetName'] ?? '') . ' ' . ($shippingAddressData['streetNumber'] ?? '') . ($shippingAddressData['streetNumberAddition'] ?? ''),
5151
'address_2' => '',
5252
'city' => $shippingAddressData['city'] ?? '',
5353
'state' => '',

0 commit comments

Comments
 (0)