summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-01 19:04:34 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-01 19:04:34 +0000
commit9db8e2d524cc25b445f02848e4963e9cb62ed32d (patch)
tree96850c4425d97f89fe1bd39c3882d9ac304ca013 /roundcubemail/program/steps
parentff1dc41c6108ebf975d6a6996680b6560abf506d (diff)
- Improve performance by avoiding unnecessary updates to the session table (#1486325)
git-svn-id: https://svn.roundcube.net/trunk@3296 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/func.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index da21220ff..a8ef65139 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/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');
}