summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-05-23 11:03:52 +0000
committeralecpl <alec@alec.pl>2011-05-23 11:03:52 +0000
commit40a1860174c612c4d60754b328fa572a7879f1e3 (patch)
tree1a1167d34080b0ba1feefaea0755cd2166a02be1 /program/include/rcmail.php
parent7ad8e2c3180e2357cbc395da18c5f9d4ad509b0a (diff)
- Store user preferences in session when write-master is not available and session is stored in memcache, write them later
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index acd661d8b..8198c3ef8 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1125,6 +1125,11 @@ class rcmail
if ($config['logout_expunge']) {
$this->imap->expunge('INBOX');
}
+
+ // Try to save unsaved user preferences
+ if (!empty($_SESSION['preferences'])) {
+ $this->user->save_prefs(unserialize($_SESSION['preferences']));
+ }
}