From: Jean-Marc Coic Date: Mon, 28 Mar 2005 17:17:30 +0000 (+0000) Subject: Bug fix: do not display too many numbers when not necessary X-Git-Tag: xorg/old~238 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0b082deb9c1a5d96d3f9c63ddc67b20300226ae1;p=platal.git Bug fix: do not display too many numbers when not necessary git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-522 --- diff --git a/include/exalead/exalead.smarty.inc.php b/include/exalead/exalead.smarty.inc.php index 8456092..ac926b3 100644 --- a/include/exalead/exalead.smarty.inc.php +++ b/include/exalead/exalead.smarty.inc.php @@ -142,7 +142,7 @@ function _exa_navigation_barre($params, &$smarty){ } else $nb_res_per_page = 10;//10 results per page - if(!empty($params['max_results'])){ + if(!empty($params['max_results']) && ((int) $params['max_results'] < $exalead_data->nhits)){ $nb_hits = (int) $params['max_results']; } else{