[-] BO : #PSFV-66 - Bad warnings "Currency not set"

This commit is contained in:
mDeflotte
2011-09-26 13:49:38 +00:00
parent 86ae8405f6
commit a2fe45d687
+2 -2
View File
@@ -228,12 +228,12 @@ class CurrencyCore extends ObjectModel
static public function checkPaymentCurrencies($id_module, $id_shop = null)
{
if (is_null($id_shop))
$id_shop = Context::getContext()->shop->getID();
$id_shop = Context::getContext()->shop->getID(true);
$sql = 'SELECT *
FROM `'._DB_PREFIX_.'module_currency`
WHERE `id_module` = '.(int)$id_module.'
AND `id_shop`='.(int)$id_shop;
AND `id_shop` = '.(int)$id_shop;
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
}