Closed (fixed)
Project:
Activity
Version:
5.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2008 at 07:54 UTC
Updated:
2 Apr 2008 at 18:13 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| commentactivity.module.patch | 467 bytes | jaydub |
Comments
Comment #1
sirkitree commentedThanks again jaydub!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.