In the commentactivity_comment() function, action is taken when any of these operations occurs to a comment:

insert
update
delete
publish
unpublish

The code in this function assumes the $a1 ($comment) is an array. In 'delete', 'publish' and 'unpublish' the $a1 variable is an object and not an array. Check the docs for hook_comment on this to confirm.

I was receiving fatal errors when deleting comments...Casting the object to an array fixed the error.

CommentFileSizeAuthor
commentactivity.module.patch467 bytesjaydub

Comments

sirkitree’s picture

Status: Needs review » Fixed

Thanks again jaydub!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.