From 09338a79bf29d6b7e64610891c327c028532d189 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 3 Oct 2011 08:35:50 +0000 Subject: [PATCH] //small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8954 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Module.php b/classes/Module.php index 8e91eb1b6..29eb7a165 100644 --- a/classes/Module.php +++ b/classes/Module.php @@ -874,8 +874,8 @@ abstract class ModuleCore LEFT JOIN `'._DB_PREFIX_.'hook` h ON hm.`id_hook` = h.`id_hook` WHERE h.`name` = \'payment\' AND mc.id_country = '.(int)($billing->id_country).' - AND mc.id_shop = '.$context->shop->getID(true).' - AND mg.id_shop = '.$context->shop->getID(true).' + AND mc.id_shop = '.(int)$context->shop->getID(true).' + AND mg.id_shop = '.(int)$context->shop->getID(true).' AND (SELECT COUNT(*) FROM '._DB_PREFIX_.'module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN('.implode(', ', $list).')) = '.count($list).' AND hm.id_shop IN('.implode(', ', $list).') GROUP BY hm.id_hook, hm.id_module