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
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

Allie Micka - December 11, 2006 - 05:08
Project:Premium» Guest Pass
Version:HEAD» HEAD

#2

arhak - October 6, 2008 - 01:17

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.

 
 

Drupal is a registered trademark of Dries Buytaert.