[-] BO : PSFV-365 - fixed bug

This commit is contained in:
mBertholino
2012-01-11 08:48:45 +00:00
parent a1a8c24d4a
commit 0cea793a08
2 changed files with 4 additions and 8 deletions
+2 -1
View File
@@ -157,7 +157,7 @@ class SpecificPriceCore extends ObjectModel
public static function getPriority($id_product)
{
if (!self::isFeatureActive())
return Configuration::get('PS_SPECIFIC_PRICE_PRIORITIES');
return explode(';', Configuration::get('PS_SPECIFIC_PRICE_PRIORITIES'));
if (!isset(self::$_cache_priorities[(int)$id_product]))
{
@@ -174,6 +174,7 @@ class SpecificPriceCore extends ObjectModel
if (!$priority)
$priority = Configuration::get('PS_SPECIFIC_PRICE_PRIORITIES');
$priority = 'id_customer;'.$priority;
return preg_split('/;/', $priority);
}