diff options
| author | Horus3 | 2014-03-29 20:26:26 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-29 20:26:26 +0100 |
| commit | f471b2130461efa25c62dbe8b015da6219cf3498 (patch) | |
| tree | 1205716f618bee59e9d3a60f2a65c051f8f541e7 /www/functions/func_folder.php | |
| parent | ea8083d7162a099a8a2e1a7976ecd1e5278a5558 (diff) | |
| download | files.iamfabulous.de-f471b2130461efa25c62dbe8b015da6219cf3498.tar.gz | |
Improved the ban system and the download mechanism.
Diffstat (limited to 'www/functions/func_folder.php')
| -rw-r--r-- | www/functions/func_folder.php | 4 |
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; } |
