diff --git a/php/elFinderVolumeDriver.class.php b/php/elFinderVolumeDriver.class.php index bc36889d1..e9ac3ce40 100644 --- a/php/elFinderVolumeDriver.class.php +++ b/php/elFinderVolumeDriver.class.php @@ -5332,9 +5332,8 @@ protected function move($src, $dst, $name) $res = $this->convEncOut($this->_move($this->convEncIn($src), $this->convEncIn($dst), $this->convEncIn($name))); // if moving it didn't work try to copy / delete if (!$res) { - $res = $this->copy($src, $dst, $name); - if (!$this->remove($src)) { - $res = false; + if ($this->copy($src, $dst, $name)) { + $res = $this->remove($src); } }