Bug #9349: Fix new subfolder doesn't show in folder list
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Jan 2011 05:00:27 +0000 (22:00 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Jan 2011 05:02:05 +0000 (22:02 -0700)
commit245d08ddc7d2f1b0d72eee0b3f96ebc164534899
tree12e250506a2f0e2660f512fca4b901c0e3ead70a
parent993174ab2d589e2e52aec8aebbbcb731cde9e6a8
Bug #9349: Fix new subfolder doesn't show in folder list

Problem only occurred if all (unsubscribed) folders are viewed.
hasChildren() was always returning true because we created the parent
element before making the initial hasChildren() check.  Need to check
for children before this.
imp/lib/Imap/Tree.php