diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-23 11:03:52 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-23 11:03:52 +0000 |
| commit | daa65a00d6a2a76fcd457193776cb5f748bec549 (patch) | |
| tree | 1820936cf8eac97d166aea9b09c2bb0effb7b494 /roundcubemail/program/include/rcmail.php | |
| parent | 7e5e85b85bdc4a7dbdb9f14d8e1b0b3b5ee44cda (diff) | |
- Store user preferences in session when write-master is not available and session is stored in memcache, write them later
git-svn-id: https://svn.roundcube.net/trunk@4802 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index acd661d8b..8198c3ef8 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/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'])); + } } |
