X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Findex%2Fclass_BaseIndex.php;h=bca12f4a0093d24c92f8adcfbb70c1f8c389147c;hp=d4a2c6b6023d0a5ce4532e573750eb53486f1e26;hb=a863937b246c06e143d147fe4108543056971472;hpb=6d54ef031eb27d1b9a46ce92f39a3c9b19633eb3 diff --git a/inc/classes/main/index/class_BaseIndex.php b/inc/classes/main/index/class_BaseIndex.php index d4a2c6b6..bca12f4a 100644 --- a/inc/classes/main/index/class_BaseIndex.php +++ b/inc/classes/main/index/class_BaseIndex.php @@ -171,7 +171,10 @@ class BaseIndex extends BaseFrameworkSystem { $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();