Question about _guestpass_send_invite
arthurf - July 26, 2006 - 17:43
| Project: | Guest Pass |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I'm getting the following error when sending a guestpass:
warning: array_merge() [function.array-merge]: Argument #2 is not an array in modules/contrib/send/send.inc on line 514.
by changing line 78 of guestpass.inc from:
return $invite[$sid.$mail];
to:
return $invite;
The send works as expected. Is this the right fix for this, or is send expecting something different than what this is producing?

#1
#2
definitely NOT
the bug resides somewhere near an invocation to
array_mergeand the precise location would be the computation of the mentioned second argument.I checked the 5.x-dev version of guestpass and the change you propose will brake it's logic, though I'm not working with Drupal 5 and have not time to check
modules/contrib/send/send.incon line 514, but that line should have an invocation toarray_mergewith some second argument like what? an invocation to_guestpass_send_invite?I don't understand why the original bug was against Premium module (which I also downloaded and doesn't seems to be related)
Please, specify which version of Drupal 5 and which version of which modules to reproduce your error.