Skip to content

Commit 365ee14

Browse files
committed
updated files
1 parent b536ec7 commit 365ee14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Mautic/Contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected function _getCustomerAddress($customer)
189189
$address = false;
190190
if ($customer instanceof \Magento\Customer\Model\Data\Customer) {
191191
$addresses = $customer->getAddresses();
192-
$address = array_shift($addresses);
192+
$address = $addresses ? array_shift($addresses) : false;
193193
} else {
194194
if ($customer->getPrimaryBillingAddress()) {
195195
$address = $customer->getPrimaryBillingAddress();

0 commit comments

Comments
 (0)