diff options
-rwxr-xr-x | ext/spl/examples/seekableiterator.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/examples/seekableiterator.inc b/ext/spl/examples/seekableiterator.inc index 157d2736f4..e0de775683 100755 --- a/ext/spl/examples/seekableiterator.inc +++ b/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++; } |