From 0441bdace6cd3433d6b3d6f9566dc04cc4746882 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 9 Jul 2014 16:49:50 +0200 Subject: [PATCH] // cast shop id --- classes/shop/ShopUrl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/shop/ShopUrl.php b/classes/shop/ShopUrl.php index 65223b971278a..1247ede51e472 100644 --- a/classes/shop/ShopUrl.php +++ b/classes/shop/ShopUrl.php @@ -160,7 +160,7 @@ public static function cacheMainDomainForShop($id_shop) SELECT domain, domain_ssl FROM '._DB_PREFIX_.'shop_url WHERE main = 1 - AND id_shop = '.($id_shop !== null ? (int)$id_shop : Context::getContext()->shop->id)); + AND id_shop = '.($id_shop !== null ? (int)$id_shop : (int)Context::getContext()->shop->id)); self::$main_domain[(int)$id_shop] = $row['domain']; self::$main_domain_ssl[(int)$id_shop] = $row['domain_ssl']; }