summaryrefslogtreecommitdiff
path: root/www/functions/func_folder.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions/func_folder.php')
-rw-r--r--www/functions/func_folder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_folder.php b/www/functions/func_folder.php
index 636b743..044fd8e 100644
--- a/www/functions/func_folder.php
+++ b/www/functions/func_folder.php
@@ -133,7 +133,7 @@ function generate_download_link($file_id){
$db = $GLOBALS["db"];
- $folder_owner_db = $db->query("SELECT owner FROM fiiles where id=".$file_id.";");
+ $folder_owner_db = $db->query("SELECT owner FROM files where id=".$file_id.";");
$folder_owner_ar = $folder_owner_db->fetchArray(SQLITE3_NUM);
if($folder_owner_ar[0] != $_SESSION["userid"]){
@@ -155,7 +155,7 @@ function generate_download_link($file_id){
UPDATE files SET download_link='".$key."' WHERE id=".$file_id.";
COMMIT;
")){
- return key;
+ return $key;
} else {
return DATABASE;
}