Check for existence.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 05:41:10 +0000 (23:41 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Sep 2010 07:24:19 +0000 (01:24 -0600)
imp/lib/Imap/Tree.php

index 5ac76e5..af6b5c4 100644 (file)
@@ -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;
             }