From 0581403ecbbce0bb2d34c07fdc90684620a150d5 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sun, 26 Dec 2004 14:20:36 +0000 Subject: [PATCH] wibble git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-138 --- htdocs/profil.php | 2 +- htdocs/recovery.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/profil.php b/htdocs/profil.php index 0751c31..e299102 100644 --- a/htdocs/profil.php +++ b/htdocs/profil.php @@ -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')) { diff --git a/htdocs/recovery.php b/htdocs/recovery.php index d5e30c1..69be7c9 100644 --- a/htdocs/recovery.php +++ b/htdocs/recovery.php @@ -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 -- 2.1.4