[-] BO : #PSFV-411 : BugFix - Check module id in checkPaymentCurrencies()

This commit is contained in:
Francois Gaillard committed 2012-02-28 16:27:40 +00:00
1 parent 75f2dfa4f6
commit 48c69aa687
1 file changed
+3
+3
View File
@@ -241,6 +241,9 @@ class CurrencyCore extends ObjectModel
public static function checkPaymentCurrencies($id_module, $id_shop = null) public static function checkPaymentCurrencies($id_module, $id_shop = null)
{ {
if (empty($id_module))
return false;
if (is_null($id_shop)) if (is_null($id_shop))
$id_shop = Context::getContext()->shop->id; $id_shop = Context::getContext()->shop->id;