From: x2000habouzit Date: Sun, 17 Oct 2004 07:30:19 +0000 (+0000) Subject: backport X-Git-Tag: xorg/old~1239 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=b91ceaed9ad16ae9cac9954571e8d0fc760121e5;p=platal.git backport --- diff --git a/htdocs/inscription/step4.php b/htdocs/inscription/step4.php index e5377db..e0e05f9 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.4 2004-10-17 07:25:44 x2000coic Exp $ + $Id: step4.php,v 1.5 2004-10-17 07:30:19 x2000habouzit Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -72,8 +72,9 @@ if (!empty($_REQUEST['ref'])) { $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$forlife','a_vie')"); if($alias) { + $p2 = sprintf("%02i",($promo%100)); $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.".sprintf("%02d",$promo%100)."','alias')"); + $globals->db->query("INSERT INTO aliases (id,alias,type) VALUES ($uid,'$alias.$p2','alias')"); } // on cree un objet logger et on log l'