From: Pascal Corpet Date: Sun, 9 Jan 2005 23:05:06 +0000 (+0000) Subject: Bug 240 : proximité sonore si résultat vide X-Git-Tag: xorg/old~497 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1e78dec96bba8ef95823ccaf95e3a46385f6ea7e;p=platal.git Bug 240 : proximité sonore si résultat vide git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-254 --- diff --git a/htdocs/advanced_search.php b/htdocs/advanced_search.php index 72c242e..e63fbca 100644 --- a/htdocs/advanced_search.php +++ b/htdocs/advanced_search.php @@ -147,11 +147,8 @@ if (!Env::has('rechercher')) { $page->assign('perpage', $globals->search->per_page); $page->assign('nb_tot', $nb_tot); $page->assign('with_soundex', $with_soundex); - - if (empty($nb_tot)) { - form_prepare(); - new ThrowError('il n\'existe personne correspondant à ces critères dans la base !'); - } elseif ($nb_tot > $globals->search->private_max) { + + if ($nb_tot > $globals->search->private_max) { form_prepare(); new ThrowError('Recherche trop générale'); }