diff --git a/controllers/front/CompareController.php b/controllers/front/CompareController.php index 3927729c3..d42b51112 100644 --- a/controllers/front/CompareController.php +++ b/controllers/front/CompareController.php @@ -82,7 +82,7 @@ class CompareControllerCore extends FrontController if (!Configuration::get('PS_COMPARATOR_MAX_ITEM')) return Tools::redirect('index.php?controller=404'); - if ($product_list = Tools::getValue('compare_product_list') && ($postProducts = (isset($product_list) ? rtrim($product_list, '|') : ''))) + 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)) $ids = CompareProduct::getCompareProducts($this->context->cookie->id_compare);