summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index e038285e2..362b94041 100644
--- a/modules/comment.module
+++ b/modules/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);