From bc5fd75a6eab6346b8813decd1c730db71f1688d Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 1 Feb 2012 15:25:59 +0000 Subject: [PATCH] // fix about PS_CUSTOMER_GROUP (replacing value 3 by PS_CUSTOMER_GROUP) git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12906 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Customer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Customer.php b/classes/Customer.php index a0d476b6d..6bdf2adaa 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -542,7 +542,7 @@ class CustomerCore extends ObjectModel public static function getGroupsStatic($id_customer) { if (!Group::isFeatureActive()) - return array(3); + return array(Configuration::get('PS_CUSTOMER_GROUP')); if (!isset(self::$_customer_groups[$id_customer])) { @@ -582,7 +582,7 @@ class CustomerCore extends ObjectModel public static function getDefaultGroupId($id_customer) { if (!Group::isFeatureActive()) - return 3; + return Configuration::get('PS_CUSTOMER_GROUP'); if (!isset(self::$_defaultGroupId[(int)$id_customer])) self::$_defaultGroupId[(int)$id_customer] = Db::getInstance()->getValue('