From 5e804573838afbfea4ccfcb321eca7ddd3be79ce Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 26 Sep 2007 15:52:06 +0000 Subject: Allow to save particular user prefs --- program/include/main.inc | 3 +++ 1 file changed, 3 insertions(+) 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=? -- cgit v1.2.3