summaryrefslogtreecommitdiff
path: root/includes/comment.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comment.inc')
-rw-r--r--includes/comment.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index 57f2bf62e..0f7d31ccf 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -35,7 +35,7 @@ function comment_moderate($moderate) {
$id = check_input($id); $vote = check_input($vote);
$comment = db_fetch_object(db_query("SELECT * FROM comments WHERE cid = '$id'"));
if ($comment && !field_get($comment, "users", $user->userid)) {
- $result = db_query("UPDATE comments SET score = score $vote, votes = votes + 1, users = '". field_set($comment, "users", $user->userid, $vote) ."' WHERE cid = '$id'");
+ $result = db_query("UPDATE comments SET score = score $vote, votes = votes + 1, users = '". field_set($comment->users, $user->userid, $vote) ."' WHERE cid = '$id'");
}
}
}
@@ -337,4 +337,4 @@ function comment_render($lid, $cid) {
}
}
-?> \ No newline at end of file
+?>