Opened 12 years ago
Closed 12 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | Activity | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Well actually, using
bp_is_group()would be best, see .02.patch