[VD:LocalFileSystem] fix problem, directory name "0" is not detected in _subdirs()

This commit is contained in:
nao-pon
2017-06-23 13:37:19 +09:00
parent bcabed8bc5
commit 5fcb8c7c9a
+1 -1
View File
@@ -577,7 +577,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
if ($dirItr->hasChildren()) {
$dirs = true;
$name = $dirItr->getSubPathName();
while($name) {
while($dirItr->valid()) {
if (!$this->attr($path . DIRECTORY_SEPARATOR . $name, 'read', null, true)) {
$dirs = false;
$dirItr->next();