http://skitch.com/alexbarth/aa5d/invite-bug
The problem is
_invite_validate_emails();
Where $emails can be empty if being called a second time on line 907 of invite.module rev 1.25.2.2 .
Maybe _invite_validate_emails() shouldn't filter out failed emails from the $emails array but leave it up to the caller to do this?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | invite-validation.patch | 2.56 KB | smk-ka |
Comments
Comment #1
smk-ka commentedNo, the second validation handler simply must not run when there are no more e-mails left to validate. This can be easily fixed by duplicating the
if (count($emails) > 0)clause.Comment #2
alex_b commentedThanks for the quick reaction... this patch works for me.
What's not expected is that when I add a mail address that exists and one that does not exist, I don't get any error messages but I'm just being kicked over to invites/pending as if all emails where taken.
Comment #3
alex_b commentedThis patch works great and is ready to be committed. I created a new issue for #2 here http://drupal.org/node/320771
Comment #4
liquidcms commentedThis patch is pretty old but issue still exists today. And i see latest dev release is back in Nov08, a month after this patch submitted - plus it is now Apr09. Is this module still being maintained as it seems like a lot of issues in the cue and no commits in > 6 months.. :(
Comment #5
sunSorry, but also thanks, I mistakenly committed the very same fix based on a patch in #310775: Duplicate email causes nasty warning (note, identical result).
So, although the other issue was a duplicate, marking this issue fixed as well.