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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8771 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2011-09-26 13:49:38 +00:00
1 parent 7d2e172321
commit ddc82146fc
1 file changed
+2 -2
+2 -2
View File
@@ -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);
} }