Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
// 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();