From adb185cdf99df9defd26bb47cea631b9a06bfdb0 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Thu, 1 Sep 2011 15:03:38 +0000 Subject: [PATCH] [-] FO : fixed bug on Manufacturer and Supplier controller, missing variable git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8300 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/ManufacturerController.php | 2 +- controllers/SupplierController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/ManufacturerController.php b/controllers/ManufacturerController.php index e45a1a1ad..5ecc6e8bb 100644 --- a/controllers/ManufacturerController.php +++ b/controllers/ManufacturerController.php @@ -93,7 +93,7 @@ class ManufacturerControllerCore extends FrontController $manufacturers = Manufacturer::getManufacturers(true, $this->context->language->id, true, $this->p, $this->n, false, $id_current_group_shop); $imgDir = _PS_MANU_IMG_DIR_; foreach ($data AS &$item) - $row['image'] = (!file_exists(_PS_MANU_IMG_DIR_.'/'.$row['id_manufacturer'].'-medium.jpg')) ? $this->context->language->iso_code.'-default' : $row['id_manufacturer']; + $item['image'] = (!file_exists(_PS_MANU_IMG_DIR_.'/'.$item['id_manufacturer'].'-medium.jpg')) ? $this->context->language->iso_code.'-default' : $item['id_manufacturer']; $this->context->smarty->assign(array( 'pages_nb' => ceil($nbProducts / (int)($this->n)), diff --git a/controllers/SupplierController.php b/controllers/SupplierController.php index 0a64e547f..01f9a9e53 100644 --- a/controllers/SupplierController.php +++ b/controllers/SupplierController.php @@ -97,7 +97,7 @@ class SupplierControllerCore extends FrontController $suppliers = Supplier::getSuppliers(true, $this->context->language->id, true, $this->p, $this->n); foreach ($suppliers AS &$row) - $row['image'] = (!file_exists(_PS_SUPP_IMG_DIR_.'/'.$row['id_supplier'].'-medium.jpg')) ? $this->context->language->iso_code.'-default' : $item['id_supplier'];; + $row['image'] = (!file_exists(_PS_SUPP_IMG_DIR_.'/'.$row['id_supplier'].'-medium.jpg')) ? $this->context->language->iso_code.'-default' : $row['id_supplier'];; $this->context->smarty->assign(array( 'pages_nb' => ceil($nbProducts / (int)$this->n),