diff options
author | alecpl <alec@alec.pl> | 2010-03-01 19:04:34 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-01 19:04:34 +0000 |
commit | 929a508d801d9434c8d98dccd0311e3a707303ba (patch) | |
tree | 3219bab9df6bb5d09aaf1cd5d6ba69e794678406 /program/steps/mail/func.inc | |
parent | a72ad657241fd35ae7e0f2cbdec210caa9554695 (diff) |
- Improve performance by avoiding unnecessary updates to the session table (#1486325)
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r-- | program/steps/mail/func.inc | 6 |
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'); } |