[VD:LocalFileSystem] fix problem in _subdirs() of unreadable dir

This commit is contained in:
nao-pon
2017-02-15 12:16:19 +09:00
parent 8b2b94190e
commit 1036ec6201
+1 -1
View File
@@ -564,7 +564,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
protected function _subdirs($path) {
$dirs = false;
if (is_dir($path)) {
if (is_dir($path) && is_readable($path)) {
if (class_exists('FilesystemIterator', false)) {
$dirItr = new ParentIterator(
new RecursiveDirectoryIterator($path,