diff --git a/Helper/EmailMarketing.php b/Helper/EmailMarketing.php index f14ed8c..47f6d86 100755 --- a/Helper/EmailMarketing.php +++ b/Helper/EmailMarketing.php @@ -538,7 +538,7 @@ public function getCustomerName(Quote $quote) if ($customer && $customer->getId()) { $customerName = trim($customer->getFirstname() . ' ' . $customer->getLastname()); } else { - $customerName = explode('@', $quote->getCustomerEmail())[0]; + $customerName = explode('@', $quote->getCustomerEmail() ?: '')[0]; } }