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

This commit is contained in:
lLefevre
2012-06-28 16:46:11 +00:00
parent a40f17d8e7
commit b8632c27ef
+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();
}
}
}