If the option to display group name is selected in the group options, the email that gets sent on submission of the group contact form should contain the group name at the beginiing of the subject. This fails to happen and I get an empty [] at the beginning.

i.e [] And then the subject...
instead of
[My Group] And then the subject...

og_contact_mail() assumes that group is an object when upon debug it appears to be an array. Changing the variables accordingly fixes the problem.

~Mark

CommentFileSizeAuthor
#1 alter_variables_to_array-1309948-1.patch1.6 KBmd2

Comments

md2’s picture

StatusFileSize
new1.6 KB

Patch alters any instance of $group->object to $group['array'] within the og_contact_mail() function.

Seems to fix the issue for me.

~Mark