From 21c445de04b9bfda09554d608a1e81745539be5f Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 9 Feb 2006 21:39:51 +0000 Subject: [PATCH] =?utf8?q?Evite=20d'afficher=20tous=20les=20r=C3=A9sultats?= =?utf8?q?=20des=20recherches=20sur=20le=20site=20public?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (résolution rapide, je suppose qu'il doit exister une solution meilleure) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@235 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/search.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/search.inc.php b/include/search.inc.php index 9990957..d40856b 100644 --- a/include/search.inc.php +++ b/include/search.inc.php @@ -98,6 +98,8 @@ class XOrgSearch extends XOrgPlugin list($list, $total) = call_user_func($this->_callback, $offset, $this->limit, $sql_order); $page_max = intval(($total-1)/$this->limit); + if(!logged() && $page_max > $globals->search->public_max) + $page_max = $globals->search->public_max; $links = Array(); if ($offset) { -- 2.1.4