Fix undefined error
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 15 May 2009 20:09:12 +0000 (14:09 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 15 May 2009 20:09:17 +0000 (14:09 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index 15af36e..45bb3a6 100644 (file)
@@ -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;
             }