Commit 9d23c24d authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#196351 by robertDouglass: fix small SQL error

parent 5395f208
...@@ -409,7 +409,7 @@ function upload_save(&$node) { ...@@ -409,7 +409,7 @@ function upload_save(&$node) {
// Create a new revision, or associate a new file needed. // Create a new revision, or associate a new file needed.
if (!empty($node->old_vid) || isset($_SESSION['upload_files'][$fid])) { if (!empty($node->old_vid) || isset($_SESSION['upload_files'][$fid])) {
db_query("INSERT INTO {upload} (fid, nid, vid, list, description, 'weight') VALUES (%d, %d, %d, %d, '%s', %d)", $file->fid, $node->nid, $node->vid, $file->list, $file->description, $file->weight); db_query("INSERT INTO {upload} (fid, nid, vid, list, description, weight) VALUES (%d, %d, %d, %d, '%s', %d)", $file->fid, $node->nid, $node->vid, $file->list, $file->description, $file->weight);
file_set_status($file, FILE_STATUS_PERMANENT); file_set_status($file, FILE_STATUS_PERMANENT);
} }
// Update existing revision. // Update existing revision.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment