Download & Extend

Question about _guestpass_send_invite

Project:Guest Pass
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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?

Comments

#1

Project:Premium» Guest Pass
Version:master» master

#2

definitely NOT
the bug resides somewhere near an invocation to array_merge and 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.inc on line 514, but that line should have an invocation to array_merge with 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.

#3

Status:active» closed (won't fix)

I'm sure you've looong forgotten this, arthurf. The module has been all kinds of rewritten, and this issue is likely no longer pertinent.