diff options
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 3 |
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=? |