]> granicus.if.org Git - php/commitdiff
Fix this
authorMarcus Boerger <helly@php.net>
Tue, 11 Nov 2003 18:33:34 +0000 (18:33 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 11 Nov 2003 18:33:34 +0000 (18:33 +0000)
ext/spl/examples/seekableiterator.inc

index 157d2736f4d8571c4fdb8407ada149b5c94aacb6..e0de775683eea615ec61db8857a7da1296897761 100755 (executable)
@@ -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++;
                }