Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#737 closed defect (bug) (fixed)

groups_record_activity bug

Reported by: djpaul's profile 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)

#1 @DJPaul
16 years ago

i.e. $group_obj = new BP_Groups_Group( $item_id, false, false );

sorry BeLogical! :)

#2 @belogical
16 years ago

i tested, and this does fix the issue.

#3 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [1477]) Fixes #737 props DJPaul

#4 @(none)
15 years ago

  • Milestone Groups 1.1 deleted

Milestone Groups 1.1 deleted

Note: See TracTickets for help on using tickets.