cvs: spl /examples directorytreeiterator.inc

From: Date: Tue, 18 Nov 2003 22:34:52 +0000
Subject: cvs: spl /examples directorytreeiterator.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-24587@lists.php.net to get a copy of this message
helly Tue Nov 18 17:34:52 2003 EDT Modified files: /spl/examples directorytreeiterator.inc Log: Must use hasNext() here Index: spl/examples/directorytreeiterator.inc diff -u spl/examples/directorytreeiterator.inc:1.1 spl/examples/directorytreeiterator.inc:1.2 --- spl/examples/directorytreeiterator.inc:1.1 Tue Nov 18 17:18:38 2003 +++ spl/examples/directorytreeiterator.inc Tue Nov 18 17:34:51 2003 @@ -11,7 +11,7 @@ { $tree = ''; for ($l=0; $l < $this->getLevel(); $l++) { - $tree .= $this->getSubIterator($l)->hasMore() ? '| ' : ' '; + $tree .= $this->getSubIterator($l)->hasNext() ? '| ' : ' '; } return $tree . ($this->getSubIterator($l)->hasNext() ? '|-' : '\-') . $this->getSubIterator($l);

« previous php.cvs (#24587) next »