From 28f2912d04d73735965e38e39095f2a5f5eeb582 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 29 Feb 2012 10:27:48 +0000 Subject: [PATCH] [-] BO : #PSFV-586 - Fix bug with importeur and img dir creation git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13730 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminImportController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 4e2cbc1d6..8d367405b 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -2092,7 +2092,8 @@ class AdminImportControllerCore extends AdminController Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'specific_price'); Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'specific_price_priority'); Image::deleteAllImages(_PS_PROD_IMG_DIR_); - mkdir(_PS_PROD_IMG_DIR_); + if (!file_exists(_PS_PROD_IMG_DIR_)) + mkdir(_PS_PROD_IMG_DIR_); break; case $this->entities[$this->l('Customers')]: Db::getInstance()->execute('TRUNCATE TABLE `'._DB_PREFIX_.'customer');