From 929a508d801d9434c8d98dccd0311e3a707303ba Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 1 Mar 2010 19:04:34 +0000 Subject: - Improve performance by avoiding unnecessary updates to the session table (#1486325) --- program/steps/mail/func.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'program/steps') 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'); } -- cgit v1.2.3