]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/index/class_BaseIndex.php
Introduced interface Pointer, valid() is now used.
[core.git] / inc / classes / main / index / class_BaseIndex.php
index d4a2c6b6023d0a5ce4532e573750eb53486f1e26..bca12f4a0093d24c92f8adcfbb70c1f8c389147c 100644 (file)
@@ -171,7 +171,10 @@ class BaseIndex extends BaseFrameworkSystem {
                $this->getIteratorInstance()->rewind();
 
                // Then try to load all entries
                $this->getIteratorInstance()->rewind();
 
                // Then try to load all entries
-               while ($this->getIteratorInstance()->next()) {
+               while ($this->getIteratorInstance()->valid()) {
+                       // Go to next entry
+                       $this->getIteratorInstance()->next();
+
                        // Get current entry
                        $current = $this->getIteratorInstance()->current();
 
                        // Get current entry
                        $current = $this->getIteratorInstance()->current();