summaryrefslogtreecommitdiff
path: root/program/include/rcube_session.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_session.php')
-rw-r--r--program/include/rcube_session.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php
index c1d9b9c6c..27cf69464 100644
--- a/program/include/rcube_session.php
+++ b/program/include/rcube_session.php
@@ -321,9 +321,9 @@ class rcube_session
*/
public function cleanup()
{
- // current compose information is stored in $_SESSION['compose'], move it to $_SESSION['compose_data']
- if ($_SESSION['compose']) {
- $_SESSION['compose_data'][$_SESSION['compose']['id']] = $_SESSION['compose'];
+ // current compose information is stored in $_SESSION['compose'], move it to $_SESSION['compose_data_<ID>']
+ if ($compose_id = $_SESSION['compose']['id']) {
+ $_SESSION['compose_data_'.$compose_id] = $_SESSION['compose'];
$this->remove('compose');
}
}