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; }