diff options
author | thomascube <thomas@roundcube.net> | 2006-04-13 18:23:48 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-04-13 18:23:48 +0000 |
commit | 86f1721926af3b2b4ab0b82f9a0904ad3d2c0733 (patch) | |
tree | 0bf67f97a5c40446ecddcbbbc39f3b81166c3ce8 /program/steps/settings/save_prefs.inc | |
parent | c1ba9587b52e788f0e9468b77aff3b54e276a6d6 (diff) |
Added sort order saving patch by Jacob Brunson
Diffstat (limited to 'program/steps/settings/save_prefs.inc')
-rw-r--r-- | program/steps/settings/save_prefs.inc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc index 81ffbe80a..98912daae 100644 --- a/program/steps/settings/save_prefs.inc +++ b/program/steps/settings/save_prefs.inc @@ -38,22 +38,8 @@ if (isset($_POST['_language'])) rcmail_set_locale($sess_user_lang); } - -$DB->query("UPDATE ".get_table_name('users')." - SET preferences=?, - language=? - WHERE user_id=?", - serialize($a_user_prefs), - $sess_user_lang, - $_SESSION['user_id']); - -if ($DB->affected_rows()) - { +if (rcmail_save_user_prefs($a_user_prefs)) show_message('successfullysaved', 'confirmation'); - - $_SESSION['user_prefs'] = $a_user_prefs; - $CONFIG = array_merge($CONFIG, $a_user_prefs); - } // go to next step |