Permalink
Browse files

[-] BO: Fix fatal error on customer edition when email is not valid

  • Loading branch information...
rGaillard committed Aug 28, 2013
1 parent 0a2d817 commit ddc16a2f65c63a6ec78355623266e9137a07ce77
Showing with 2 additions and 1 deletion.
  1. +2 −1 controllers/admin/AdminCustomersController.php
@@ -774,7 +774,8 @@ public function processUpdate()
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;
}

0 comments on commit ddc16a2

Please sign in to comment.