mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fix rename
This commit is contained in:
@@ -767,7 +767,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
|
||||
protected function _move($source, $targetDir, $name) {
|
||||
$sql = 'UPDATE %s SET parent_id=%d, name="%s" WHERE id=%d LIMIT 1';
|
||||
$sql = sprintf($sql, $this->tbf, $targetDir, $this->db->real_escape_string($name), $source);
|
||||
return $this->query($sql) && $this->db->affected_rows > 0;
|
||||
return $this->query($sql) && $this->db->affected_rows > 0 ? $source : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user