diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index ee2abb97a..91d41e6ce 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -1371,7 +1371,7 @@ abstract class elFinderVolumeDriver { } elseif ($file['mime'] == 'directory') { return $this->setError(elFinder::ERROR_NOT_REPLACE, $name); } - $this->remove($file); + $this->remove($test); } else { $name = $this->uniqueName($dstpath, $name, '-', false); }