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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17796 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fGaillard
2012-10-08 11:43:19 +00:00
parent fc74fc6a4b
commit ae304427cf
2 changed files with 2 additions and 1 deletions

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.')' : '').'