From e1dfd81d64b9bca374f8c6c00a598b522e5bde70 Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 16 Apr 2012 09:07:24 +0000 Subject: [PATCH] // Fix id_shop in URL --- classes/shop/Shop.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index d5a687fc2..2da29397e 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -244,7 +244,7 @@ class ShopCore extends ObjectModel $excluded_uris[] = $directory; // Find current shop from URL - if (!$id_shop = Tools::getValue('id_shop') && !defined('_PS_ADMIN_DIR_')) + if (!($id_shop = Tools::getValue('id_shop')) && !defined('_PS_ADMIN_DIR_')) { $sql = 'SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM '._DB_PREFIX_.'shop_url su