Data is in the keys at this point
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Nov 2009 23:57:31 +0000 (16:57 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 20 Nov 2009 23:57:31 +0000 (16:57 -0700)
imp/lib/Imap/Tree.php

index 2aea730..ce4b61b 100644 (file)
@@ -287,7 +287,7 @@ class IMP_Imap_Tree
     protected function _getList($showunsub)
     {
         if ($showunsub && !is_null($this->_fulllist)) {
-            return $this->_fulllist;
+            return array_keys($this->_fulllist);
         } elseif (!$showunsub) {
             if (is_null($this->_subscribed)) {
                 /* The subscribed list MAY contain mailboxes that do not
@@ -296,7 +296,7 @@ class IMP_Imap_Tree
                  * and intersect against the LSUB list. */
                 $this->_getList(true);
             } else {
-                return $this->_subscribed;
+                return array_keys($this->_subscribed);
             }
         }