[-] Classes : Hook - Display payment method & shop default currency bug fix

This commit is contained in:
François Gaillard committed 2012-10-08 11:43:19 +00:00
1 parent bfc93e43ac
commit 3b2165f9bb
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1311,6 +1311,7 @@ abstract class ModuleCore
$paypal_condition = ' AND m.`name` = \'paypal\'';
$list = Shop::getContextListShopID();
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT DISTINCT m.`id_module`, h.`id_hook`, m.`name`, hm.`position`
FROM `'._DB_PREFIX_.'module` m
'.($frontend ? 'LEFT JOIN `'._DB_PREFIX_.'module_country` mc ON (m.`id_module` = mc.`id_module` AND mc.id_shop = '.(int)$context->shop->id.')' : '').'