Bug #9102: Don't want to reindex array when adding INBOX
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Jun 2010 20:45:57 +0000 (14:45 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Jun 2010 20:45:57 +0000 (14:45 -0600)
imp/lib/Imap/Tree.php

index fd58622..c2bcc12 100644 (file)
@@ -312,7 +312,7 @@ class IMP_Imap_Tree
 
             /* INBOX must always appear. */
             if (empty($result['INBOX'])) {
-                $result = array_merge($imp_imap->listMailboxes('INBOX', Horde_Imap_Client::MBOX_ALL, array('attributes' => true, 'delimiter' => true)), $result);
+                $result = $imp_imap->listMailboxes('INBOX', Horde_Imap_Client::MBOX_ALL, array('attributes' => true, 'delimiter' => true)) + $result;
             }
         } catch (Horde_Imap_Client_Exception $e) {}