From bd9261af9733eeb9c1087f0d83ca5ed2401e9796 Mon Sep 17 00:00:00 2001 From: jBreux Date: Tue, 20 Dec 2011 17:03:08 +0000 Subject: [PATCH] // Fix comparator git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11432 b9a71923-0436-4b27-9f14-aed3839534dd --- 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);