From d576e52c6c9d3772ab2f6e385c31a2e32da213a2 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 15 May 2009 14:09:12 -0600 Subject: [PATCH] Fix undefined error --- framework/Imap_Client/lib/Horde/Imap/Client/Socket.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php index 15af36e19..45bb3a68e 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php @@ -816,7 +816,8 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base } catch (Horde_Imap_Client_Exception $e) { // An EXAMINE/SELECT failure with a return of 'NO' will cause the // current mailbox to be unselected. - if ($this->_temp['parseresperr']['response'] == 'NO') { + if (isset($this->_temp['parseresperr']['response']) && + ($this->_temp['parseresperr']['response'] == 'NO')) { $this->_selected = null; $this->_mode = 0; } -- 2.11.0