[-] BO : #PSFV-66 - Bad warnings "Currency not set"
This commit is contained in:
@@ -228,12 +228,12 @@ class CurrencyCore extends ObjectModel
|
|||||||
static public function checkPaymentCurrencies($id_module, $id_shop = null)
|
static public function checkPaymentCurrencies($id_module, $id_shop = null)
|
||||||
{
|
{
|
||||||
if (is_null($id_shop))
|
if (is_null($id_shop))
|
||||||
$id_shop = Context::getContext()->shop->getID();
|
$id_shop = Context::getContext()->shop->getID(true);
|
||||||
|
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM `'._DB_PREFIX_.'module_currency`
|
FROM `'._DB_PREFIX_.'module_currency`
|
||||||
WHERE `id_module` = '.(int)$id_module.'
|
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);
|
return Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user