From 129a99b053a23ced8fa40f92fb0bc2e7e19c8617 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 7 Sep 2010 01:24:58 -0600 Subject: [PATCH] Only save the IMAP object once per session --- imp/lib/Imap.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Imap.php b/imp/lib/Imap.php index 8fafb2cf8..bcdbdd84b 100644 --- a/imp/lib/Imap.php +++ b/imp/lib/Imap.php @@ -62,9 +62,9 @@ class IMP_Imap $this->_serverkey = $serverkey; /* Rebuild the Horde_Imap_Client object. */ - $this->_loadImapObject(); - - register_shutdown_function(array($this, 'shutdown')); + if (!$this->_loadImapObject()) { + register_shutdown_function(array($this, 'shutdown')); + } } /** -- 2.11.0