From 5fe0acbfcb9d5d877c124b9b0120f4212c96ccbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gaillard?= Date: Tue, 2 Apr 2013 17:52:52 +0200 Subject: [PATCH] [-] Classes : Bug fix : Mobile hooks, check PayPal for payments only --- classes/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Hook.php b/classes/Hook.php index f88973e7c..a5fbbd35d 100644 --- a/classes/Hook.php +++ b/classes/Hook.php @@ -274,6 +274,7 @@ class HookCore extends ObjectModel // For payment modules, we check that they are available in the contextual country elseif ($frontend) { + $sql->where(Module::getPaypalIgnore()); if (Validate::isLoadedObject($context->country)) $sql->where('(h.name = "displayPayment" AND (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.')'); if (Validate::isLoadedObject($context->currency)) @@ -286,7 +287,6 @@ class HookCore extends ObjectModel { $sql->leftJoin('module_group', 'mg', 'mg.`id_module` = m.`id_module`'); $sql->where('mg.`id_group` IN ('.implode(', ', $groups).')'); - $sql->where(Module::getPaypalIgnore()); $sql->groupBy('hm.id_hook, hm.id_module'); }