Allow to save particular user prefs

This commit is contained in:
thomascube
2007-09-26 15:52:06 +00:00
parent 2ec7d6219d
commit 5e80457383

View File

@@ -843,6 +843,9 @@ function rcmail_save_user_prefs($a_user_prefs)
{
global $DB, $CONFIG, $sess_user_lang;
// merge (partial) prefs array with existing settings
$a_user_prefs += (array)$_SESSION['user_prefs'];
$DB->query("UPDATE ".get_table_name('users')."
SET preferences=?,
language=?