diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-03 06:52:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-03 06:52:29 +0000 |
commit | fea41b639e71abc50547164d5bd3617e0dd68a8f (patch) | |
tree | eea642a4347f06b4027f83dc8dcdd35e0b627c89 /modules/comment/comment.module | |
parent | 2ad42112c4bf8ba8b7137f89922dc807b565a3aa (diff) | |
download | brdo-fea41b639e71abc50547164d5bd3617e0dd68a8f.tar.gz brdo-fea41b639e71abc50547164d5bd3617e0dd68a8f.tar.bz2 |
- Patch #468630 by Berdir: fixed error with publishing comments.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 3 |
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']; |