summaryrefslogtreecommitdiff
path: root/discussion.php
diff options
context:
space:
mode:
Diffstat (limited to 'discussion.php')
-rw-r--r--discussion.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/discussion.php b/discussion.php
index bd795a6f7..52de6bdbb 100644
--- a/discussion.php
+++ b/discussion.php
@@ -265,7 +265,7 @@ function comment_post($pid, $sid, $subject, $comment) {
watchdog("comment", "discussion: added comment with subject '$subject'");
// Add comment to database:
- db_query("INSERT INTO comments (pid, sid, author, subject, comment, hostname, timestamp) VALUES ($pid, $sid, '$user->id', '". check_input($subject) ."', '". check_input($comment) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."')");
+ db_query("INSERT INTO comments (pid, sid, author, subject, comment, hostname, timestamp, score) VALUES ($pid, $sid, '$user->id', '". check_input($subject) ."', '". check_input($comment) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."', '". ($user->userid ? 1 : 0) ."')");
// Compose header:
header("Location: discussion.php?id=$sid");