From 575db90c7aec03d29ac7b6ccc5be725bf540b12c Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 17 Apr 2012 08:26:31 +0000 Subject: [PATCH] // Fix id_shop in URL for BO --- 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 21365d201..29efb8780 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