From 85434264b67eda6ade9b910c648a7bbc5d873dbf Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 31 Jan 2012 15:15:01 +0000 Subject: [PATCH] // norm fix --- classes/shop/Shop.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 6a6dbc633..393cb822a 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -918,7 +918,9 @@ class ShopCore extends ObjectModel $query->select('cs.`id_category`'); else $query->select('DISTINCT cs.`id_category`, cl.`name`, cl.`link_rewrite`'); - $query->from('category_shop', 'cs')->leftJoin('category_lang', 'cl', 'cl.`id_category` = cs.`id_category` AND cl.`id_lang` = '.(int)Context::getContext()->language->id)->where('cs.`id_shop` = '.(int)$id); + $query->from('category_shop', 'cs'); + $query->leftJoin('category_lang', 'cl', 'cl.`id_category` = cs.`id_category` AND cl.`id_lang` = '.(int)Context::getContext()->language->id); + $query->where('cs.`id_shop` = '.(int)$id); $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query); if ($only_id)