// Fixed hook call in the installer (without shop context)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16963 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-23 09:55:58 +00:00
parent 117ab13cac
commit 8f7543bd47
+2 -1
View File
@@ -269,7 +269,8 @@ class HookCore extends ObjectModel
// For payment modules, we check that they are available in the contextual country
if ($frontend && Validate::isLoadedObject($context->country))
$sql->where('(h.name != "displayPayment" OR (SELECT id_country FROM '._DB_PREFIX_.'module_country mc WHERE mc.id_module = m.id_module AND id_country = '.(int)$context->country->id.' LIMIT 1) = '.(int)$context->country->id.')');
$sql->where('hm.id_shop = '.(int)$context->shop->id);
if (Validate::isLoadedObject($context->shop))
$sql->where('hm.id_shop = '.(int)$context->shop->id);
if (isset($context->customer) && $context->customer->isLogged())
{