#737 closed defect (bug) (fixed)
groups_record_activity bug
| Reported by: | DJPaul | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Version: | 1.0 | |
| Severity: | Keywords: | ||
| Cc: | djpaul@… |
Description
bp-groups.php. groups_record_activity(), approx line 950:
if ( !$group_obj ) {
if ( !$group_obj = wp_cache_get( 'groups_group_nouserdata_' . $item_id, 'bp' ) ) {
$group_obj = new BP_Groups_Group( $group_obj->id, false, false );
wp_cache_set( 'groups_group_nouserdata_' . $item_id, $group_obj, 'bp' );
}
}
That third line above, in the call to create the BP_Groups_Group object, the first argument cannot *possibly* be $group_obj. It needs to be $item_id.
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)
i.e. $group_obj = new BP_Groups_Group( $item_id, false, false );
sorry BeLogical! :)