summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index da21220ff..a8ef65139 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1325,9 +1325,9 @@ function rcmail_compose_cleanup()
if (!isset($_SESSION['compose']))
return;
- rcmail::get_instance()->plugins->exec_hook('cleanup_attachments',array());
-
- rcube_sess_unset('compose');
+ $rcmail = rcmail::get_instance();
+ $rcmail->plugins->exec_hook('cleanup_attachments',array());
+ $rcmail->session->remove('compose');
}