diff options
Diffstat (limited to 'php/move.php')
-rw-r--r-- | php/move.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/php/move.php b/php/move.php index a663c5a..5b8df30 100644 --- a/php/move.php +++ b/php/move.php @@ -38,7 +38,7 @@ if (!$old_dir || !$new_dir || ($old_dir==$user->home_directory && ($old_filename } // Check if the filename is taken in the new dir -$contents_of_new_dir = $database->get_links_of($new_dir); +$contents_of_new_dir = $database->get_links_of($new_dir,$user->user_id); foreach ($contents_of_new_dir as $c) { if ($c['name'] == $new_filename) { error_log("filename $new_filename taken in $new_folder"); @@ -49,7 +49,7 @@ foreach ($contents_of_new_dir as $c) { // Get the file node $file_node = null; -$contents_of_old_dir = $database->get_links_of($old_dir); +$contents_of_old_dir = $database->get_links_of($old_dir,$user->user_id); foreach ($contents_of_old_dir as $c) { if ($c['name'] == $old_filename) { $file_node = $c['id']; |