Indicates there is no results on avdanced search when appropriate?
authorStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 10:07:30 +0000 (12:07 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 16 Jul 2010 10:10:24 +0000 (12:10 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/search.php

index 4386c99..72a09ac 100644 (file)
@@ -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 !');
             }
         }