summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-09-26 15:52:06 +0000
committerthomascube <thomas@roundcube.net>2007-09-26 15:52:06 +0000
commit5e804573838afbfea4ccfcb321eca7ddd3be79ce (patch)
treeace8380e51f92610a7e0183d523552ea7edc6f22 /program
parent2ec7d6219d38b36d4461676c3798c1003731a164 (diff)
Allow to save particular user prefs
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index ee6d19ba8..9809865d4 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -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=?