Opened 13 years ago
Closed 13 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9 |
| Component: | Groups | Version: | 1.8.1 |
| Severity: | minor | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.