From 2941895b6bd65a46c2fbf8a71f1d74a5a4645d92 Mon Sep 17 00:00:00 2001 From: jBreux Date: Tue, 20 Dec 2011 17:03:08 +0000 Subject: [PATCH] // Fix comparator --- controllers/front/CompareController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);