From ddc16a2f65c63a6ec78355623266e9137a07ce77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 28 Aug 2013 17:46:05 +0200 Subject: [PATCH] [-] BO: Fix fatal error on customer edition when email is not valid --- controllers/admin/AdminCustomersController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminCustomersController.php b/controllers/admin/AdminCustomersController.php index 621e9b765..d4edc5926 100644 --- a/controllers/admin/AdminCustomersController.php +++ b/controllers/admin/AdminCustomersController.php @@ -774,7 +774,8 @@ class AdminCustomersControllerCore extends AdminController if ($customer_email != $this->object->email) { $customer = new Customer(); - $customer->getByEmail($customer_email); + if (Validate::isEmail($customer_email)) + $customer->getByEmail($customer_email); if ($customer->id) $this->errors[] = Tools::displayError('An account already exists for this email address:').' '.$customer_email; }