// 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:
+9
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user