// Fix uses of $cookie var in CompareProduct
// Fix little issue on Geolocation [-] FO : Fix issue on compare product when cookie->id_compare value is invalid
This commit is contained in:
@@ -86,7 +86,7 @@ class CompareControllerCore extends FrontController
|
||||
|
||||
if (($product_list = Tools::getValue('compare_product_list')) && ($postProducts = (isset($product_list) ? rtrim($product_list, '|') : '')))
|
||||
$ids = array_unique(explode('|', $postProducts));
|
||||
else if (isset(self::$cookie->id_compare))
|
||||
else if (isset($this->context->cookie->id_compare))
|
||||
$ids = CompareProduct::getCompareProducts($this->context->cookie->id_compare);
|
||||
else
|
||||
$ids = null;
|
||||
|
||||
Reference in New Issue
Block a user