From 48c69aa687f365f8de902071a3671fe6621787d3 Mon Sep 17 00:00:00 2001 From: Francois Gaillard Date: Tue, 28 Feb 2012 16:27:40 +0000 Subject: [PATCH] [-] BO : #PSFV-411 : BugFix - Check module id in checkPaymentCurrencies() --- classes/Currency.php | 3 +++ 1 file changed, 3 insertions(+) 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;