From 32a11677e7dc5cd0497a1c56fa2240f3f389a2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 2 May 2013 18:58:05 +0200 Subject: [PATCH] // small fix --- classes/shop/ShopUrl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/shop/ShopUrl.php b/classes/shop/ShopUrl.php index c30bb2676..c8e4b6074 100644 --- a/classes/shop/ShopUrl.php +++ b/classes/shop/ShopUrl.php @@ -171,11 +171,13 @@ class ShopUrlCore extends ObjectModel public static function getMainShopDomainSSL($id_shop = null) { if (!self::$main_domain_ssl || $id_shop !== null) + { $sql = 'SELECT domain_ssl FROM '._DB_PREFIX_.'shop_url WHERE main = 1 AND id_shop = '.($id_shop !== null ? (int)$id_shop : Context::getContext()->shop->id); self::$main_domain_ssl = Db::getInstance()->getValue($sql); + } return self::$main_domain_ssl; } -} +} \ No newline at end of file