From 64e22a828b980f8ca6699ad0729375e5c14a356c Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sun, 28 Jan 2007 21:12:48 +0000 Subject: [PATCH] un oubli repere par ben_spip, cassait {par date} en [8536] --- ecrire/public/criteres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/public/criteres.php b/ecrire/public/criteres.php index 1a64608820..9e8ceb08d9 100644 --- a/ecrire/public/criteres.php +++ b/ecrire/public/criteres.php @@ -338,7 +338,7 @@ function critere_parinverse($idb, &$boucles, $crit, $sens) { $boucle->select[] = $texte . " AS $as"; $order = "'$as'"; } else { - if (!ereg("^" . CHAMP_SQL_PLUS_FONC . '$', $par, $match)) + if (!preg_match(",^" . CHAMP_SQL_PLUS_FONC . '$,is', $par, $match)) erreur_squelette(_T('zbug_info_erreur_squelette'), "{par $par} BOUCLE$idb"); else { if ($match[2]) { $par = substr($match[2],1,-1); $fct = $match[1]; } -- GitLab