src build elFinder-2.1-94c7586

This commit is contained in:
nao-pon
2016-03-29 21:28:54 +09:00
parent 53314c6ccb
commit 80769923de
8 changed files with 38 additions and 15 deletions
+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));