wibble
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sun, 26 Dec 2004 14:20:36 +0000 (14:20 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:51 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-138

htdocs/profil.php
htdocs/recovery.php

index 0751c31..e299102 100644 (file)
@@ -94,7 +94,7 @@ if (Env::has('modifier') || Env::has('suivant')) {
     if ($web_public) $bits_reply .= 'web_public,';
     if ($libre_public) $bits_reply .= 'libre_public,';
     if (!empty($bits_reply)) $bits_reply = substr($bits_reply, 0, -1);
-    $sql = "UPDATE auth_user_md5 set bits = '$bits_reply' WHERE user_id=".Session::getInt('uid'));
+    $sql = "UPDATE auth_user_md5 set bits = '$bits_reply' WHERE user_id=".Session::getInt('uid');
     $globals->db->query($sql);
     
     if (!Session::has('suid')) {
index d5e30c1..69be7c9 100644 (file)
@@ -28,7 +28,7 @@ if (Env::has('login') and Env::has('birth'))  {
     }
     $birth   = sprintf('%s-%s-%s', substr(Env::get('birth'),4,4), substr(Env::get('birth'),2,2), substr(Env::get('birth'),0,2));
 
-    $mailorg = strtok(Env::get('login', '@');
+    $mailorg = strtok(Env::get('login'), '@');
 
     // paragraphe rajouté : si la date de naissance dans la base n'existe pas, on l'update
     // avec celle fournie ici en espérant que c'est la bonne
@@ -83,7 +83,7 @@ Polytechnique.org
 Adresse de secours : ".Post::get('email') : "")."
 
 
-Mail envoyé à ".Env::get('login'));
+Mail envoyé à ".Env::get('login');
         $mymail->send();
 
         // on cree un objet logger et on log l'evenement