From ad54740d5e9d94e7dd7a1aa9c44bc9f064bb3e91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 13 May 2014 08:41:45 +0200 Subject: [PATCH] Fixed reading directories. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/io/class_FrameworkDirectoryPointer.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/classes/main/io/class_FrameworkDirectoryPointer.php b/inc/classes/main/io/class_FrameworkDirectoryPointer.php index 9b8d7972..da220403 100644 --- a/inc/classes/main/io/class_FrameworkDirectoryPointer.php +++ b/inc/classes/main/io/class_FrameworkDirectoryPointer.php @@ -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(); -- 2.39.5