[VD:LocalFileSystem] fix notice error

ref. https://github.com/Studio-42/elFinder/issues/1173#issuecomment-168434704
This commit is contained in:
nao-pon
2016-01-03 11:41:18 +09:00
parent 6997ec2370
commit d701d8891c
+2 -2
View File
@@ -53,8 +53,8 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
protected function init() {
// Normalize directory separator for windows
if (DIRECTORY_SEPARATOR !== '/') {
foreach(array('path', 'tmpPath', 'quarantine') as $key) {
if ($this->options[$key]) {
foreach(array('path', 'tmbPath', 'tmpPath', 'quarantine') as $key) {
if (!empty($this->options[$key])) {
$this->options[$key] = str_replace('/', DIRECTORY_SEPARATOR, $this->options[$key]);
}
}