backport
authorRaphael Marichez <falco@m4x.org>
Fri, 4 Feb 2005 03:16:15 +0000 (03:16 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:02 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-25
   backport from dev

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-26
   bugs on core_mail_fmt : couldn't be changed, and...

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-443

htdocs/preferences.php

index 0c84ded..d1659e4 100644 (file)
@@ -42,7 +42,7 @@ if (Env::has('forget')) {
 if (Env::has('mail_fmt')) {
     $fmt=Env::get('mail_fmt');
     if ($fmt != 'texte') $fmt = 'html';
-    $globals->xdb->execute("REPLACE INTO auth_user_quick
+    $globals->xdb->execute("      UPDATE auth_user_quick
                                      SET core_mail_fmt = '$fmt'
                                    WHERE user_id = {?}", Session::getInt('uid'));
     $_SESSION['mail_fmt'] = $fmt;