From 8a9aafe5f36588d31448181f483911a4979e1552 Mon Sep 17 00:00:00 2001 From: x2000coic Date: Sun, 17 Oct 2004 07:25:44 +0000 Subject: [PATCH] aliases should have 2 digit suffix : prenom.nom.XX --- htdocs/inscription/step4.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/inscription/step4.php b/htdocs/inscription/step4.php index a8c31f4..e5377db 100644 --- a/htdocs/inscription/step4.php +++ b/htdocs/inscription/step4.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: step4.php,v 1.3 2004-10-16 14:20:19 x2000habouzit Exp $ + $Id: step4.php,v 1.4 2004-10-17 07:25:44 x2000coic Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -73,7 +73,7 @@ if (!empty($_REQUEST['ref'])) { $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$forlife','a_vie')"); if($alias) { $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$alias','alias')"); - $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$alias.".($promo%100)."','alias')"); + $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$alias.".sprintf("%02d",$promo%100)."','alias')"); } // on cree un objet logger et on log l' -- 2.1.4