$fields = new SFieldGroup(true, array($qSearch));
if ($qSearch->isempty()) {
- new ThrowError('Recherche trop générale.');
+ new ThrowError('Recherche trop générale.');
}
$sql = 'SELECT SQL_CALC_FOUND_ROWS
$fields = new SFieldGroup(true, advancedSearchFromInput());
if ($fields->too_large()) {
$this->form_prepare();
- new ThrowError('Recherche trop générale.');
+ new ThrowError('Recherche trop générale.');
}
global $globals, $page;
$nb_tot = $search->show();
if (!S::logged() && $nb_tot > $globals->search->public_max) {
- new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.');
+ new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.');
} elseif ($nb_tot > $globals->search->private_max) {
- new ThrowError('Recherche trop générale');
+ new ThrowError('Recherche trop générale');
} elseif (empty($nb_tot)) {
- new ThrowError('il n\'existe personne correspondant à ces critères dans la base !');
+ new ThrowError('il n\'existe personne correspondant à ces critères dans la base !');
}
} else {
$page->assign('formulaire',1);
if ($nb_tot > $globals->search->private_max) {
$this->form_prepare();
- new ThrowError('Recherche trop générale');
+ new ThrowError('Recherche trop générale');
}
}
}
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>