Opened 11 years ago
Closed 11 years ago
#5269 closed defect (bug) (fixed)
Notice error in bp_get_group_join_button() for non members of private groups
Reported by: | imath | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 1.9 | Priority: | normal |
Severity: | minor | Version: | 1.8.1 |
Component: | Groups | Keywords: | has-patch |
Cc: |
Description
Actually, the problem doesn't exist in 1.8.1. This is something i've only noticed in 1.9-beta1
If a group is private, then if the logged in user is not a member of this group, in the groups directory, bp_get_group_join_button() causes a notice error as $group->is_invited
is not defined.
I suggest the diff attached (simply adds an isset check)
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Good catch.
The suggestion in 5269.diff is a workaround for the fact that the properties aren't set correctly in the first place. I think I'd rather fix the root issue.