// BugFix : Problems with blockcart

This commit is contained in:
mDeflotte
2011-12-21 09:52:38 +00:00
parent 8f262c81e8
commit b67f8abe67
4 changed files with 11 additions and 6 deletions
+9 -1
View File
@@ -85,7 +85,15 @@ class LinkCore
$url .= $this->getLangLink($id_lang);
if (!is_object($product))
$product = new Product($product, false, $id_lang);
{
if (is_array($product) && isset($product['id_product']))
$product = new Product((int)$product['id_product'], false, $id_lang);
else if(is_numeric($product))
$product = new Product((int)$product, false, $id_lang);
else
throw new PrestashopException('Invalid product vars');
}
// Set available keywords
$params = array();