[-] BO : #PSCFV-2972 : fix unnecessary message

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16155 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-06-28 16:46:11 +00:00
parent 5d044d3e91
commit e91b3d8a2c
+1 -1
View File
@@ -1327,6 +1327,7 @@ class AdminImportControllerCore extends AdminController
$product_has_images = (bool)Image::getImages($this->context->language->id, (int)$product->id);
foreach ($product->image as $key => $url)
{
$url = trim($url);
$error = false;
if (!empty($url))
{
@@ -1357,7 +1358,6 @@ class AdminImportControllerCore extends AdminController
if ($error)
{
$this->warnings[] = sprintf(Tools::displayError('Product n°%1$d : the picture cannot be saved : %2$s'), $image->id_product, $url);
$this->errors[] = ($field_error !== true ? $field_error : '').($lang_field_error !== true ? $lang_field_error : '').Db::getInstance()->getMsgError();
}
}
}