Compare the keys, not the values (which are objects).
authorJan Schneider <jan@horde.org>
Wed, 18 Aug 2010 09:39:30 +0000 (11:39 +0200)
committerJan Schneider <jan@horde.org>
Wed, 18 Aug 2010 09:39:30 +0000 (11:39 +0200)
imp/lib/Imap/Tree.php

index 42c7eaa..01f0000 100644 (file)
@@ -1114,7 +1114,7 @@ class IMP_Imap_Tree implements ArrayAccess
         $this->_initPollList();
 
         $plist = $prune
-            ? array_values(array_intersect(array_keys($this->_poll), $this->folderList()))
+            ? array_values(array_intersect(array_keys($this->_poll), array_keys($this->folderList())))
             : array_keys($this->_poll);
 
         if ($sort) {