[VD:LocalFileSyste] fix #1292 enbug @329593b46d5f36693236d349b06b55bd927b59c1

This commit is contained in:
nao-pon
2016-03-29 21:25:15 +09:00
parent 7f1ce90d2a
commit 33e24c4f0d
+1 -1
View File
@@ -467,7 +467,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$stat = array_merge($stat, $this->getOwnerStat($uid, $gid));
}
if ($dir = is_dir($path) && $this->options['detectDirIcon']) {
if (($dir = is_dir($path)) && $this->options['detectDirIcon']) {
$favicon = $path . DIRECTORY_SEPARATOR . $this->options['detectDirIcon'];
if ($this->URL && file_exists($favicon)) {
$stat['icon'] = $this->URL . str_replace(DIRECTORY_SEPARATOR, '/', substr($favicon, strlen($this->root) + 1));