fix rename

This commit is contained in:
Dmitry (dio) Levashov
2012-09-16 15:26:21 +04:00
parent 276105605a
commit 455221fc16
3 changed files with 14 additions and 16 deletions
+1 -1
View File
@@ -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;
}
/**