]> git.mxchange.org Git - core.git/commitdiff
Fixed reading directories.
authorRoland Häder <haeder@hmmdeutschland.de>
Tue, 13 May 2014 06:41:45 +0000 (08:41 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Tue, 13 May 2014 06:41:45 +0000 (08:41 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
inc/classes/main/io/class_FrameworkDirectoryPointer.php

index 9b8d797243b6967f501518eb264f168fa809a424..da220403458c081e6531ca4f7cc5a0b937c3efd5 100644 (file)
@@ -122,14 +122,14 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem {
                // Can the next entry be read?
                assert($this->getDirectoryInstance()->valid());
 
+               // Default is FALSE
+               $current = FALSE;
+
                // Is it a dot directory?
-               if ($this->getDirectoryInstance()->isDot()) {
-                       // Then call this method recursive
-                       $current = $this->readRawDirectory();
-               } else {
+               if (!$this->getDirectoryInstance()->isDot()) {
                        // Read data from the directory pointer and return it
                        $current = $this->getDirectoryInstance()->current();
-               }
+               } // END - if
 
                // Advance to next entry
                $this->getDirectoryInstance()->next();