[dev] Folder List

Michael M Slusarz slusarz at bigworm.colorado.edu
Thu Jan 8 13:14:23 PST 2004


Quoting Rick Emery <rick at emery.homelinux.net>:

| Quoting Rick Emery <rick at emery.homelinux.net>:
|
| > For now, I've decided to work on the problem of folders being duplicated in
| > the
| > folder list; I'll try to track down the errors later.
| >
| > This is what I know so far; in Tree.php, function next(), after line 587
| > (because of my various debugging lines, the numbers might not be exact;
| this
| > is the line - $this->_currkey++), I var_dump $this->_tree, $this->_currkey,
| > and $this->current().
| >
| > $this->tree lists every folder from my home directory once (no duplicates).
| > $this->_currkey gets incremented each time.
| > $this->current() returns each folder (from the mail/ directory in my home
| > directory) twice (despite _currkey being incremented).
|
| OK, I've determined that $this->_parent[] is where the folders are being
| duplicated, but only the folders in the "mail" directory; other folders in my
| home directory that contain sub-folders are only listed once.
|
| Any ideas? Thanks in advance.

There was a typo in lib/Tree.php that I just fixed - see if that makes things
work correctly.

michael

______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the dev mailing list