mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:Box] fix problem that isNameExists() return value is wrong
This commit is contained in:
@@ -1006,7 +1006,16 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
$this->options['searchExDirReg'] = $searchExDirReg;
|
||||
|
||||
if ($search) {
|
||||
return $search[0];
|
||||
$f = false;
|
||||
foreach($search as $f) {
|
||||
if ($f['name'] !== $name) {
|
||||
$f = false;
|
||||
}
|
||||
if ($f) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return $f;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user