From: Stéphane Jacob Date: Fri, 16 Jul 2010 10:07:30 +0000 (+0200) Subject: Indicates there is no results on avdanced search when appropriate? X-Git-Tag: xorg/1.0.1~341 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=6a48a49aaf1ee39389b61751832421e612303b9d;p=platal.git Indicates there is no results on avdanced search when appropriate? Signed-off-by: Stéphane Jacob --- 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 !'); } }