From: Michael M Slusarz Date: Tue, 7 Sep 2010 07:24:58 +0000 (-0600) Subject: Only save the IMAP object once per session X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=129a99b053a23ced8fa40f92fb0bc2e7e19c8617;p=horde.git Only save the IMAP object once per session --- 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')); + } } /**