From 47402f886a58f7e88b4c7b53dbe342890608d38b Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 12 Jun 2012 09:30:49 +0000 Subject: [PATCH] // Fix bug when install fixtures git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15979 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Search.php b/classes/Search.php index 1a593c875..3c0bfd49d 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, floor($limit / $max_possibilities, 0) * $max_possibilities); + $limit = max(1, floor($limit / $max_possibilities) * $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,