From 1c7a1b5124a13ec3126eb352a9d4911902464d00 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 31 Aug 2010 23:41:10 -0600 Subject: [PATCH] Check for existence. --- imp/lib/Imap/Tree.php | 1 + 1 file changed, 1 insertion(+) diff --git a/imp/lib/Imap/Tree.php b/imp/lib/Imap/Tree.php index 5ac76e58d..af6b5c46e 100644 --- a/imp/lib/Imap/Tree.php +++ b/imp/lib/Imap/Tree.php @@ -1788,6 +1788,7 @@ class IMP_Imap_Tree implements ArrayAccess, Iterator /* If element exists in ancestors list, it is valid. */ if (isset($c['ancestors']) && + isset($c['ancestors'][$this->_currparent]) && ($c['ancestors'][$this->_currparent] == $this->_currkey)) { return true; } -- 2.11.0