From e91b3d8a2c86e9338d53d3583213b236b331841d Mon Sep 17 00:00:00 2001 From: lLefevre Date: Thu, 28 Jun 2012 16:46:11 +0000 Subject: [PATCH] [-] 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 --- controllers/admin/AdminImportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 55ef155d8..2eb4cf30e 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -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(); } } }