From bc016fc4987d1279554b25912babf791bf39ccd9 Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 14 Feb 2012 09:39:18 +0000 Subject: [PATCH] // Optimization on Product cache git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13283 b9a71923-0436-4b27-9f14-aed3839534dd --- 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();