From 40a1860174c612c4d60754b328fa572a7879f1e3 Mon Sep 17 00:00:00 2001 From: alecpl 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 --- program/include/rcmail.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'program/include/rcmail.php') 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'])); + } } -- cgit v1.2.3