$results still needs to be defined if we catch an exception here.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jul 2010 15:23:57 +0000 (11:23 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jul 2010 15:23:57 +0000 (11:23 -0400)
imp/lib/Imap/Tree.php

index e9dfe78..812ee50 100644 (file)
@@ -315,7 +315,9 @@ class IMP_Imap_Tree
             if (empty($result['INBOX'])) {
                 $result = $imp_imap->listMailboxes('INBOX', Horde_Imap_Client::MBOX_ALL, array('attributes' => true, 'delimiter' => true)) + $result;
             }
-        } catch (Horde_Imap_Client_Exception $e) {}
+        } catch (Horde_Imap_Client_Exception $e) {
+            $result = array();
+        }
 
         if ($showunsub) {
             $this->_fulllist = $result;