summaryrefslogtreecommitdiff
path: root/www/functions.php
diff options
context:
space:
mode:
authorHorus32014-03-11 17:31:52 +0100
committerHorus32014-03-11 17:31:52 +0100
commit67e117d18f9ed0db28d31a03da42bb7b1050d33e (patch)
tree9c3a9b87fc578c0c21311e28cbb073ac14bb845b /www/functions.php
parentf938f30ff922e5073f71cd80a70ad74b7d8f93f5 (diff)
downloadfiles.iamfabulous.de-67e117d18f9ed0db28d31a03da42bb7b1050d33e.tar.gz
Upload checks if file already exist. If true, it just do the database linking.
Diffstat (limited to 'www/functions.php')
-rw-r--r--www/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/functions.php b/www/functions.php
index 3e29ffd..091a1a1 100644
--- a/www/functions.php
+++ b/www/functions.php
@@ -221,7 +221,7 @@ function register($db){
if($db->exec("
BEGIN TRANSACTION;
UPDATE user SET name='$safe_name', salt='$salt', password='$hash_password', invites=5, status=1, register=(SELECT datetime()) WHERE id=$id;
- INSERT INTO files (id, parent, owner, name, folder, mime, size, share, extra) VALUES (NULL, 0, $id, '/', 'DIRECTORY', NULL, NULL, 'PUBLIC', NULL);
+ INSERT INTO files (id, parent, owner, name, folder, mime, size, share, size, hash) VALUES (NULL, 0, $id, '/', 'DIRECTORY', NULL, NULL, 'PUBLIC', 0, '');
COMMIT;")
){
$_SESSION["login"] = true;