From 3600bf88b7be97049e421abe84ca27610ac6a7f1 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 28 Feb 2006 17:42:23 +0000 Subject: [PATCH] fix a bug wrt xorg_errors git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@253 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/search.php | 2 +- templates/paiement/index.tpl | 2 +- templates/search.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/search.php b/htdocs/search.php index ad9cc04..6127913 100644 --- a/htdocs/search.php +++ b/htdocs/search.php @@ -78,7 +78,7 @@ if (Env::has('quick')) { $search->addOrder('score', 'score', false, 'pertinence', AUTH_PUBLIC, true); $nb_tot = $search->show(); - + if (!logged() && $nb_tot > $globals->search->public_max) { new ThrowError('Votre recherche a généré trop de résultats pour un affichage public.'); } elseif ($nb_tot > $globals->search->private_max) { diff --git a/templates/paiement/index.tpl b/templates/paiement/index.tpl index 3733fa0..42c3699 100644 --- a/templates/paiement/index.tpl +++ b/templates/paiement/index.tpl @@ -23,7 +23,7 @@

Télépaiements

-{if $smarty.request.op eq "submit" and !$xorg_error->errs|count} +{if $smarty.request.op eq "submit" and !$xorg_errors|count} diff --git a/templates/search.tpl b/templates/search.tpl index 54fc08b..57cc99f 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -21,7 +21,7 @@ {**************************************************************************} -{if $formulaire==0 and !$xorg_error->errs|count} +{if $formulaire==0 and !$xorg_errors|count} {if !$advanced} {include file='search.quick.form.tpl' show_js=1} {else} -- 2.1.4