Getting Notice for anon user on our home page as follows:

Notice: Undefined variable: _SESSION in user_relationship_invites_user() (line 81 of www/sites/all/modules/contrib/user_relationships/user_relationship_invites/user_relationship_invites.module).

Comments

bcmiller0’s picture

StatusFileSize
new778 bytes

here is patch to remove hitting notice condition.

bcmiller0’s picture

StatusFileSize
new882 bytes

oops, here is patch with proper relative paths.

mrf’s picture

Status: Active » Needs review
mrf’s picture

Status: Needs review » Postponed (maintainer needs more info)
StatusFileSize
new2.85 KB

I cleaned this whole section up a bit, and included a check for the invite session variable around the whole thing.

Let me know if this removes the notice for you, I wasn't able to see that in my testing.

mrf’s picture

Status: Postponed (maintainer needs more info) » Needs review
mrf’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs review » Postponed (maintainer needs more info)

I never saw the notice so I can't really confirm if this fix works or not. If someone can test this on a site that relies on invites give me a +1 and I'll commit this.