summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
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=?