// fix on module when customer is not logged
This commit is contained in:
1 parent
01bcc4bcac
commit
117d5d1c28
1 file changed
+4
@@ -1231,7 +1231,11 @@ abstract class ModuleCore
|
|||||||
|
|
||||||
$groups = array();
|
$groups = array();
|
||||||
if (isset($context->customer))
|
if (isset($context->customer))
|
||||||
|
{
|
||||||
$groups = $context->customer->getGroups();
|
$groups = $context->customer->getGroups();
|
||||||
|
if (empty($groups))
|
||||||
|
$groups = array(Configuration::get('PS_UNIDENTIFIED_GROUP'));
|
||||||
|
}
|
||||||
|
|
||||||
$hookPayment = 'Payment';
|
$hookPayment = 'Payment';
|
||||||
if (Db::getInstance()->getValue('SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'displayPayment\''))
|
if (Db::getInstance()->getValue('SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \'displayPayment\''))
|
||||||
|
|||||||
Reference in new issue
Block a user