Skip to content

Commit

Permalink
// cast shop id
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jul 9, 2014
1 parent 54f5447 commit 0441bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/shop/ShopUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 0441bda

Please sign in to comment.