From 47c5873257483e50378e53fc44b881fcfbe8d9d3 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 2 Apr 2013 10:31:01 +0200 Subject: [PATCH] [-] BO : Remove warning on ProductDownload --- classes/ProductDownload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ProductDownload.php b/classes/ProductDownload.php index f19561b5b..9936e635a 100644 --- a/classes/ProductDownload.php +++ b/classes/ProductDownload.php @@ -175,7 +175,7 @@ class ProductDownloadCore extends ObjectModel { if (!ProductDownload::isFeatureActive()) return false; - if (array_key_exists($id_product, self::$_productIds)) + if (array_key_exists((int)$id_product, self::$_productIds)) return self::$_productIds[$id_product]; self::$_productIds[$id_product] = (int)Db::getInstance()->getValue(' SELECT `id_product_download`