From a2fe45d687d26bd3477bb71b96669fbefc6c53c7 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Mon, 26 Sep 2011 13:49:38 +0000 Subject: [PATCH] [-] BO : #PSFV-66 - Bad warnings "Currency not set" --- classes/Currency.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Currency.php b/classes/Currency.php index cb92464fb..a85fc6ac8 100644 --- a/classes/Currency.php +++ b/classes/Currency.php @@ -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); }