From ae4ca19eb94cbb3b528ce649c2ce422363a2f80f Mon Sep 17 00:00:00 2001 From: fGaillard Date: Tue, 28 Feb 2012 16:27:40 +0000 Subject: [PATCH] [-] BO : #PSFV-411 : BugFix - Check module id in checkPaymentCurrencies() git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13702 b9a71923-0436-4b27-9f14-aed3839534dd --- 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;