X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fclasses%2Fmain%2Fstacker%2Ffile%2Fclass_BaseFileStack.php;h=56c3b99d4b7539cfce89f814448953fa90d6f68d;hb=a863937b246c06e143d147fe4108543056971472;hp=01193aab761de4e2eadbda4216d3100bafcbeede;hpb=6d54ef031eb27d1b9a46ce92f39a3c9b19633eb3;p=core.git diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 01193aab..56c3b99d 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -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();