tellafriend shows error message after I send a message
intertik - December 30, 2008 - 03:44
| Project: | tellafriend |
| Version: | 6.x-2.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.

#1
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
#2
it's better to check if $params['header'] is set, and use it if available. Patch attached
#3
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!
------------------------------------------------------------
#4
Fixed in 6.2.8 version
#5
Automatically closed -- issue fixed for two weeks with no activity.