// BugFix : Problems with blockcart

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11456 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2011-12-21 09:52:38 +00:00
parent 23aa8049c6
commit 9637f7f409
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();