From 6595ab329664464eab4e2cc4debaa2bc71badb7a Mon Sep 17 00:00:00 2001 From: nao-pon Date: Thu, 3 May 2012 13:46:14 +0900 Subject: [PATCH] fix upload problem when file exists --- php/elFinderVolumeDriver.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }