From 84f44351d1f9e11d6b1421aa2de77c3414058159 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Thu, 27 Mar 2014 01:09:06 +0100 Subject: Bug fixes. --- www/functions/func_folder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/functions') diff --git a/www/functions/func_folder.php b/www/functions/func_folder.php index c511897..c911e23 100644 --- a/www/functions/func_folder.php +++ b/www/functions/func_folder.php @@ -1,6 +1,6 @@ exec(" BEGIN TRANSACTION; INSERT INTO files (id, parent, owner, name, folder, size, share, hash) VALUES (Null, " . $file_id . ", " . $_SESSION['userid'] . ", '" . SQLite3::escapeString($new_folder_name) . "', 'DIRECTORY', 0, '" . SQLite3::escapeString($share) . "', ''); @@ -42,7 +42,7 @@ function create_folder($path, $new_folder_name, $share){ } } - if(database_mkdir($file_id, $new_folder_name, $share)){ + if(database_mkdir($db, $file_id, $new_folder_name, $share)){ return MKDIR_SUCCESS; } else { return MKDIR_DATABASE; -- cgit v1.2.3