From 5b7069f0bfe33dacc0bd2e36138852c137dce07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 17 Dec 2012 15:52:52 +0100 Subject: [PATCH] [-] FO: Fix cache product features #PSCFV-6138 --- classes/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Product.php b/classes/Product.php index ca3082963..108da3f44 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -3219,8 +3219,8 @@ class ProductCore extends ObjectModel { if (!array_key_exists($row['id_product'].'-'.$id_lang, self::$_frontFeaturesCache)) self::$_frontFeaturesCache[$row['id_product'].'-'.$id_lang] = array(); - if (!isset(self::$_frontFeaturesCache[$row['id_product'].'-'.$id_lang][$row['id_product']])) - self::$_frontFeaturesCache[$row['id_product'].'-'.$id_lang][$row['id_product']] = $row; + if (!isset(self::$_frontFeaturesCache[$row['id_product'].'-'.$id_lang][$row['id_feature']])) + self::$_frontFeaturesCache[$row['id_product'].'-'.$id_lang][$row['id_feature']] = $row; } }