summaryrefslogtreecommitdiff
path: root/www/functions.php
diff options
context:
space:
mode:
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;