summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 170d098e2..3b7129dfd 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -948,7 +948,8 @@ function comment_save($edit) {
}
else {
drupal_set_message(t('Your comment has been posted.'));
- comment_invoke_comment($edit, 'publish');
+ $comment = (object)$edit;
+ comment_invoke_comment($comment, 'publish');
}
return $edit['cid'];