#737 closed defect (bug) (fixed)
groups_record_activity bug
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | 1.0 | |
Component: | 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.
i.e. $group_obj = new BP_Groups_Group( $item_id, false, false );
sorry BeLogical! :)