projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d4079
)
Must use hasNext() here
author
Marcus Boerger
<helly@php.net>
Tue, 18 Nov 2003 22:34:51 +0000
(22:34 +0000)
committer
Marcus Boerger
<helly@php.net>
Tue, 18 Nov 2003 22:34:51 +0000
(22:34 +0000)
ext/spl/examples/directorytreeiterator.inc
patch
|
blob
|
history
diff --git
a/ext/spl/examples/directorytreeiterator.inc
b/ext/spl/examples/directorytreeiterator.inc
index 3059cc6088b0b8f888bc8b387347bce133c75caf..e7e297aca2585cebbd90e8815b1cb7b63a5d61bf 100644
(file)
--- a/
ext/spl/examples/directorytreeiterator.inc
+++ b/
ext/spl/examples/directorytreeiterator.inc
@@
-11,7
+11,7
@@
class DirectoryTreeIterator extends RecursiveIteratorIterator
{
$tree = '';
for ($l=0; $l < $this->getLevel(); $l++) {
- $tree .= $this->getSubIterator($l)->has
More
() ? '| ' : ' ';
+ $tree .= $this->getSubIterator($l)->has
Next
() ? '| ' : ' ';
}
return $tree . ($this->getSubIterator($l)->hasNext() ? '|-' : '\-')
. $this->getSubIterator($l);