// fix on module when customer is not logged

This commit is contained in:
vChabot
2012-05-03 14:59:17 +00:00
parent 01bcc4bcac
commit 117d5d1c28
+4
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\''))