diff --git a/classes/Currency.php b/classes/Currency.php index d64bd009e..bf997b16d 100644 --- a/classes/Currency.php +++ b/classes/Currency.php @@ -241,6 +241,9 @@ class CurrencyCore extends ObjectModel public static function checkPaymentCurrencies($id_module, $id_shop = null) { + if (empty($id_module)) + return false; + if (is_null($id_shop)) $id_shop = Context::getContext()->shop->id;