From 1a2754d18ca079ea55e4c272d7cdc9dc33c00179 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 16 Feb 2011 09:42:31 +0000 Subject: - Applied fixes from trunk --- program/include/rcmail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'program/include/rcmail.php') diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 4ff790d85..e1dc22d07 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1071,9 +1071,6 @@ class rcmail */ public function shutdown() { - if (is_object($this->imap)) - $this->imap->close(); - if (is_object($this->smtp)) $this->smtp->disconnect(); @@ -1198,6 +1195,9 @@ class rcmail } } + if (is_object($this->imap)) + $this->imap->close(); + return $base64 ? base64_encode($cipher) : $cipher; } -- cgit v1.2.3