From e73cd3cecda8cd852e9cd5f91336dd9a44164acf Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 4 Jan 2012 15:53:31 +0000 Subject: [PATCH] // fix useless call to array_unique --- classes/Search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Search.php b/classes/Search.php index ffc22c2c8..519e1b898 100644 --- a/classes/Search.php +++ b/classes/Search.php @@ -234,7 +234,8 @@ class SearchCore if (!count($eligibleProducts)) return ($ajax ? array() : array('total' => 0, 'result' => array())); } - array_unique($eligibleProducts); + + $eligibleProducts = array_unique($eligibleProducts); $productPool = ''; foreach ($eligibleProducts as $id_product)