From 929a508d801d9434c8d98dccd0311e3a707303ba Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 01 Mar 2010 14:04:34 -0500 Subject: [PATCH] - Improve performance by avoiding unnecessary updates to the session table (#1486325) --- 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 da21220..a8ef651 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1325,9 +1325,9 @@ 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'); } -- Gitblit v1.9.1