Browse Source

Fix this

PEAR_1_4DEV
Marcus Boerger 23 years ago
parent
commit
e480d10021
  1. 2
      ext/spl/examples/seekableiterator.inc

2
ext/spl/examples/seekableiterator.inc

@ -5,7 +5,7 @@ class SeekableIterator implements Iterator
function seek($index) {
$this->rewind();
$position = 0;
while($position < $index && $this->it->hasMore()) {
while($position < $index && $this->hasMore()) {
$this->next();
$position++;
}

Loading…
Cancel
Save