From 6a48a49aaf1ee39389b61751832421e612303b9d Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 16 Jul 2010 12:07:30 +0200 Subject: [PATCH] Indicates there is no results on avdanced search when appropriate? MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/search.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/search.php b/modules/search.php index 4386c99..72a09ac 100644 --- a/modules/search.php +++ b/modules/search.php @@ -169,6 +169,9 @@ class SearchModule extends PLModule if ($nb_tot > $globals->search->private_max) { $this->form_prepare(); $page->trigError('Recherche trop générale.'); + } else if ($nb_tot == 0) { + $this->form_prepare(); + $page->trigError('Il n\'existe personne correspondant à ces critères dans la base !'); } } -- 2.1.4