From fea41b639e71abc50547164d5bd3617e0dd68a8f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Jun 2009 06:52:29 +0000 Subject: - Patch #468630 by Berdir: fixed error with publishing comments. --- modules/comment/comment.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment/comment.module') 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']; -- cgit v1.2.3