]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/file/class_BaseFileStack.php
Introduced interface Pointer, valid() is now used.
[core.git] / inc / classes / main / stacker / file / class_BaseFileStack.php
index 01193aab761de4e2eadbda4216d3100bafcbeede..56c3b99d4b7539cfce89f814448953fa90d6f68d 100644 (file)
@@ -193,7 +193,10 @@ class BaseFileStack extends BaseStacker {
                $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();