[-] BO : fix #PSCFV-4216

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17453 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-09-21 09:58:38 +00:00
parent ae34979845
commit 89af761924
+4 -1
View File
@@ -1948,7 +1948,10 @@ class AdminImportControllerCore extends AdminController
);
}
else
{
$this->errors[] = sprintf(Tools::displayError('"%s": Is not a valid e-mail address'), $address->customer_email);
continue;
}
}
if (isset($address->manufacturer) && is_numeric($address->manufacturer) && Manufacturer::manufacturerExists((int)$address->manufacturer))
@@ -1997,7 +2000,7 @@ class AdminImportControllerCore extends AdminController
if (($field_error = $address->validateFields(UNFRIENDLY_ERROR, true)) === true &&
($lang_field_error = $address->validateFieldsLang(UNFRIENDLY_ERROR, true)) === true)
{
if (count($customer_list) > 0)
if (isset($customer_list) && count($customer_list) > 0)
{
$filter_list = array();
foreach ($customer_list as $customer)