Opened 10 years ago
Closed 10 years ago
#6268 closed defect (bug) (fixed)
bp_has_activities() should check if the groups component is active before using one of its functions
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | has-patch |
Cc: |
Description
Since r9536, bp_has_activities()
is using groups_get_current_group()
at line 625. The problem is: when the Groups component is not active, we get a fatal error as the function is not available.
I suggest to use a bp_is_active()
check to avoid it.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Well actually, using
bp_is_group()
would be best, see .02.patch