diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-22 13:03:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-22 13:03:32 +0000 |
commit | 742410aafdf3d85ec3f0060e5c9fd1d09ee71672 (patch) | |
tree | 94bb8a1c027c4aad144eb6870c6de7b96c8162cd /modules/comment | |
parent | 90e5e355cb9fe0186d70c8ebde8c7a7bc1324ea4 (diff) | |
download | brdo-742410aafdf3d85ec3f0060e5c9fd1d09ee71672.tar.gz brdo-742410aafdf3d85ec3f0060e5c9fd1d09ee71672.tar.bz2 |
- Bugfix: prefix not prepended to sequences. Fixes bug #3639.
Make sure to write:
db_next_id({table}_field);
instead of:
db_next_id(table_field);
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index e038285e2..362b94041 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -452,7 +452,7 @@ function comment_post($edit) { } - $edit["cid"] = db_next_id("comments_cid"); + $edit["cid"] = db_next_id("{comments}_cid"); db_query("INSERT INTO {comments} (cid, nid, pid, uid, subject, comment, hostname, timestamp, status, score, users, thread) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', %d, %d, %d, '%s', '%s')", $edit["cid"], $edit["nid"], $edit["pid"], $user->uid, $edit["subject"], $edit["comment"], getenv("REMOTE_ADDR"), time(), $status, $score, $users, $thread); |