summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-29 23:13:13 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-29 23:13:13 +0000
commit9d23c24d8e1decc840a5793affd52b581a6d6515 (patch)
tree415f7a04f4f31a908d442ce4d51a5fc60b181c9c
parent5395f208d38df7091efb4d7f827d0b13d3dffc09 (diff)
downloadbrdo-9d23c24d8e1decc840a5793affd52b581a6d6515.tar.gz
brdo-9d23c24d8e1decc840a5793affd52b581a6d6515.tar.bz2
#196351 by robertDouglass: fix small SQL error
-rw-r--r--modules/upload/upload.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 178ed2315..fcd2f5a92 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -409,7 +409,7 @@ function upload_save(&$node) {
// Create a new revision, or associate a new file needed.
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);
}
// Update existing revision.