// Performance optimizations

This commit is contained in:
rGaillard
2012-06-14 14:11:11 +00:00
parent 2609f8ff7e
commit 066ce42382
14 changed files with 98 additions and 93 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ class CustomerCore extends ObjectModel
public static function getGroupsStatic($id_customer)
{
if (!Group::isFeatureActive())
if (!Group::isFeatureActive() || $id_customer = 0)
return array(Configuration::get('PS_CUSTOMER_GROUP'));
if (!isset(self::$_customer_groups[$id_customer]))