After I use the tellafriend form located at http://sitename/tellafriend
the message gets sent, however, I get the following error message:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/intetub8/public_html/modules/tellafriend/tellafriend.module on line 453.

CommentFileSizeAuthor
#2 tellafriend_arraymerge.module.patch852 bytesryan_courtnage

Comments

Militopedia’s picture

Hi there,

I got the same error message. I am not a programmer but when I changed line 453 of the tellafriend.module from

$message['headers'] = array_merge($message['headers'], $params['headers']);

to

$message['headers'] = array_merge($message['headers']);

there was no error message anymore and everything worked properly. I received the e-mail and the content was ok.

Perhaps the creator of the module has a neater way to solve this problem. By the way, thanks a lot for developing this!

Cheers,
Roger

ryan_courtnage’s picture

Status: Active » Needs review
StatusFileSize
new852 bytes

it's better to check if $params['header'] is set, and use it if available. Patch attached

intertik’s picture

I applied the answer from Militopedia and worked out fine... thanks!

Plus I have no clue how to install a patch (I tried before without success) but thank you anyways for sending it.
(by the way if you can tell me how to install a patch it'll be great).

------------------------------------------------------------
www.InterTik.com - Online Shopping Directory
Visit Us Before Buying Anything Online!
------------------------------------------------------------

thierry_gd’s picture

Status: Needs review » Fixed

Fixed in 6.2.8 version

Status: Fixed » Closed (fixed)

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