From baf3d7aff0d92ac3f2d9261ef6e22643558d0284 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 18 Aug 2010 11:39:30 +0200 Subject: [PATCH] Compare the keys, not the values (which are objects). --- imp/lib/Imap/Tree.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Imap/Tree.php b/imp/lib/Imap/Tree.php index 42c7eaa9e..01f000051 100644 --- a/imp/lib/Imap/Tree.php +++ b/imp/lib/Imap/Tree.php @@ -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) { -- 2.11.0