// 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:
@@ -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\''))
|
||||
|
||||
Reference in New Issue
Block a user