diff --git a/config/defines.inc.php b/config/defines.inc.php index b38c03eed..10ec03f5b 100755 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -125,7 +125,7 @@ define('_STOCK_MOVEMENT_MISSING_REASON_', 4); /** * @deprecated 1.5.0.1 - * @see Group::CUSTOMER + * @see const PS_CUSTOMER_GROUP */ define('_PS_DEFAULT_CUSTOMER_GROUP_', 3); diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 2ebc8957b..73832d619 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -161,7 +161,7 @@ class BlockCategories extends Module $id_customer = (int)($params['cookie']->id_customer); // Get all groups for this customer and concatenate them as a string: "1,2,3..." // It is necessary to keep the group query separate from the main select query because it is used for the cache - $groups = $id_customer ? implode(', ', Customer::getGroupsStatic($id_customer)) : _PS_DEFAULT_CUSTOMER_GROUP_; + $groups = $id_customer ? implode(', ', Customer::getGroupsStatic($id_customer)) : Configuration::get('PS_UNIDENTIFIED_GROUP'); $id_product = (int)(Tools::getValue('id_product', 0)); $id_category = (int)(Tools::getValue('id_category', 0)); $id_lang = (int)($params['cookie']->id_lang);