diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-01-16 18:14:15 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2001-01-16 18:14:15 +0000 |
commit | 67320833940a6aee8c5ab54a8cb456dbd8c37bbb (patch) | |
tree | c52bbb4e09aadca20d5fe231181b2dd250072a4d /includes | |
parent | 34b723457b81376f91ed11b1a5f95e5e8b7820d1 (diff) | |
download | brdo-67320833940a6aee8c5ab54a8cb456dbd8c37bbb.tar.gz brdo-67320833940a6aee8c5ab54a8cb456dbd8c37bbb.tar.bz2 |
Fixed bug with story-moderation-comments starting at 0 score instead of 1.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/submission.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/submission.inc b/includes/submission.inc index b91d30de5..67c814079 100644 --- a/includes/submission.inc +++ b/includes/submission.inc @@ -21,7 +21,7 @@ function submission_vote($id, $vote, $comment) { if ($comment) { watchdog("comment", "moderation: added comment with subject '$subject'"); - db_query("INSERT INTO comments (sid, author, subject, comment, hostname, timestamp) VALUES($id, $user->id, '". check_input(substr($comment, 0, 29)) ." ...', '". check_input($comment) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."')"); + db_query("INSERT INTO comments (sid, author, subject, comment, hostname, timestamp, score) VALUES($id, $user->id, '". check_input(substr($comment, 0, 29)) ." ...', '". check_input($comment) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."', '" . ($user->userid ? 1 : 0) . "')"); } // Update user's history record: |