diff options
author | thomascube <thomas@roundcube.net> | 2010-03-17 12:24:09 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2010-03-17 12:24:09 +0000 |
commit | f52c936f4d451a5d3a87d2501aa5a1701cdafde5 (patch) | |
tree | e95611d6d47ea75e76d15ebbdea1daf4a3de83ba /program/include/rcube_user.php | |
parent | f4f1c442f7eb3edbb48dbcc705c6d83dcaf8e021 (diff) |
Merged devel-threads branch (r3066:3364) back into trunk
Diffstat (limited to 'program/include/rcube_user.php')
-rw-r--r-- | program/include/rcube_user.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php index 835ffe955..6ed16dbac 100644 --- a/program/include/rcube_user.php +++ b/program/include/rcube_user.php @@ -111,19 +111,22 @@ class rcube_user if (!isset($old_prefs[$key]) && ($value == $config->get($key))) unset($save_prefs[$key]); } - + + $save_prefs = serialize($save_prefs); + $this->db->query( "UPDATE ".get_table_name('users')." SET preferences=?, language=? WHERE user_id=?", - serialize($save_prefs), + $save_prefs, $_SESSION['language'], $this->ID); $this->language = $_SESSION['language']; if ($this->db->affected_rows()) { $config->set_user_prefs($a_user_prefs); + $this->data['preferences'] = $save_prefs; return true; } |