diff msite.inc.php @ 872:5e9958f78b16

More work.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Nov 2014 13:31:56 +0200
parents 9b9939fce097
children ffb5643eff4f
line wrap: on
line diff
--- a/msite.inc.php	Wed Nov 26 13:31:12 2014 +0200
+++ b/msite.inc.php	Wed Nov 26 13:31:56 2014 +0200
@@ -1067,9 +1067,9 @@
 
   // Create new file entry
   $sql = stPrepareSQL(
-    "INSERT INTO files (origname,filetype,filesize,entry_id,uploader_id,utime) ".
+    "INSERT INTO files (origname,filetype,filesize,entry_id,uploader_id,uploadtype,utime) ".
     "VALUES (%s,%s,%d,%d,%d,%d)",
-    $origName, $fileType, $fileSize, $entry["id"], $uploaderID, time());
+    $origName, $fileType, $fileSize, $entry["id"], $uploaderID, $type, time());
 
   if (($fileID = stExecSQLInsert($sql)) === false)
     return stFileError($uploaderID,