From 5bcc29cadd4172bd1d2de96b5cc73793d6d74e31 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Tue, 12 Jun 2012 07:41:20 +0000 Subject: [PATCH] // compatibility fix, #PSCFV-2793 --- classes/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Search.php b/classes/Search.php index 370d78288..1a593c875 100644 --- a/classes/Search.php +++ b/classes/Search.php @@ -384,7 +384,7 @@ class SearchCore { // Adjust the limit to get only "whole" products, in every languages (and at least one) $max_possibilities = $total_languages * count(Shop::getShops(true)); - $limit = max(1, round($limit / $max_possibilities, 0, PHP_ROUND_HALF_DOWN) * $max_possibilities); + $limit = max(1, floor($limit / $max_possibilities, 0) * $max_possibilities); return Db::getInstance()->executeS(' SELECT p.id_product, pl.id_lang, pl.id_shop, pl.name pname, p.reference, p.ean13, p.upc,