#3691 closed defect (bug) (fixed)
Fatal call to bp_activity_get_permalink() if activity updates have been used but subsequently disabled
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | has-patch |
Cc: |
Description
In the members loop (and maybe elsewhere), bp_get_member_latest_update() tries to show the latest update. We bail out of that function if the member's latest_update field is empty, which it will be if activity was never enabled. However, that field may be populated if activity *was* once enabled, which means that we won't bail, and we hit a fatal error later in the function with bp_activity_get_permalink().
There are probably fancy ways to fix this, but I suggest a simple bp_is_active() check. See 01.patch.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Looks good to me.