Hi,

when I send an invitation to one of the request I get the following warning:

The first argument should be an array in sites/all/modules/requestinvitation/requestinvitation.module on line 246.

Even, when I resend, that warning appears!

Regards,

Tobi

Comments

DerTobi75’s picture

Assigned: DerTobi75 » Unassigned
alphageekboy’s picture

Priority: Normal » Critical

I get the same error and see it repeated several times for just one invitation request.

mackh’s picture

same for me, i commented out the
//$value = array_keys(array_filter($value));

line and it half works, except there is no checkbox rendered for the first invite...

EgonO’s picture

Same Problem here - any other hints than #3?! Cause i think commenting a line out is the wrong way to fix a/that bug :)

buddhika’s picture

Assigned: Unassigned » buddhika

I was out of touch for some time. Will look at this asap.

MartysMind’s picture

Replace line 246 with:

if (is_array($value) && isset($values['array_filter'])) {
$value = array_keys(array_filter($value));
}

Worked for me.

darclex’s picture

martysmind comment#6 worked for me also
maybe should be considered a patch, or a fix... this is why this community rules

buddhika’s picture

Thanks. I will add the fix.

buddhika’s picture

Status: Active » Fixed

Fix is added to the repo but still not made to a release. Let me know if there's any issue with the patch before a new release.

Status: Fixed » Closed (fixed)

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

kangaroobin’s picture

does #6 work?