diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-06-04 07:31:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-06-04 07:31:59 +0000 |
commit | a6c8a06c5b317ec893bfb2af0951c48bad024ff3 (patch) | |
tree | 9dc519adff23fda0f230b46a2e017e55dba9cf4b | |
parent | 19b8132289003800bc1c8cde3ccabe286c0172a1 (diff) | |
download | brdo-a6c8a06c5b317ec893bfb2af0951c48bad024ff3.tar.gz brdo-a6c8a06c5b317ec893bfb2af0951c48bad024ff3.tar.bz2 |
- Patch #148972 by drewish: use correct sequence.
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index cebc97194..9bf86930b 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -574,7 +574,7 @@ function file_save_upload($source, $validators = array(), $dest = FALSE, $replac } // If we made it this far it's safe to record this file in the database. - $file->fid = db_next_id('fid'); + $file->fid = db_next_id('{files}_fid'); db_query("INSERT INTO {files} (fid, uid, filename, filepath, filemime, filesize, status, timestamp) VALUES (%d, %d, '%s', '%s', '%s', %d, %d, %d)", $file->fid, $user->uid, $file->filename, $file->filepath, $file->filemime, $file->filesize, FILE_STATUS_TEMPORARY, time()); // Add file to the cache. |