// fix on module when customer is not logged

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15053 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-05-03 14:59:17 +00:00
parent 957d30dba6
commit b44fad77ce

View File

@@ -1231,7 +1231,11 @@ abstract class ModuleCore
$groups = array();
if (isset($context->customer))
{
$groups = $context->customer->getGroups();
if (empty($groups))
$groups = array(Configuration::get('PS_UNIDENTIFIED_GROUP'));
}
$hookPayment = 'Payment';
if (Db::getInstance()->getValue('SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'displayPayment\''))