From 1bdfebf11ed38a6ecff17138a151ce6967851d28 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 14 Feb 2012 09:39:18 +0000 Subject: [PATCH] // Optimization on Product cache --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index 1373f01f6..3416f1761 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -2366,7 +2366,7 @@ class ProductCore extends ObjectModel return self::$_prices[$cache_id]; // fetch price & attribute price - $cache_id_2 = $id_product.'-'.$id_product_attribute; + $cache_id_2 = $id_product.'-'.(int)$id_product_attribute; if (!isset(self::$_pricesLevel2[$cache_id_2])) { $sql = new DbQuery();