From daa65a00d6a2a76fcd457193776cb5f748bec549 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 23 May 2011 11:03:52 +0000 Subject: - 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 --- roundcubemail/program/include/rcmail.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'roundcubemail/program/include/rcmail.php') 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'])); + } } -- cgit v1.2.3