#3691 closed defect (bug) (fixed)
Fatal call to bp_activity_get_permalink() if activity updates have been used but subsequently disabled
| Reported by: | boonebgorges | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.2 |
| Component: | Activity | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good to me.