[-] BO : Remove warning on ProductDownload

This commit is contained in:
gRoussac committed 2013-04-02 10:31:01 +02:00
1 parent 2da2455397
commit d790447e5f
1 file changed
+1 -1
+1 -1
View File
@@ -175,7 +175,7 @@ class ProductDownloadCore extends ObjectModel
{ {
if (!ProductDownload::isFeatureActive()) if (!ProductDownload::isFeatureActive())
return false; return false;
if (array_key_exists($id_product, self::$_productIds)) if (array_key_exists((int)$id_product, self::$_productIds))
return self::$_productIds[$id_product]; return self::$_productIds[$id_product];
self::$_productIds[$id_product] = (int)Db::getInstance()->getValue(' self::$_productIds[$id_product] = (int)Db::getInstance()->getValue('
SELECT `id_product_download` SELECT `id_product_download`