Skip to:
Content

BuddyPress.org

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#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)

#1 @DJPaul
18 years ago

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

sorry BeLogical! :)

#2 @belogical
18 years ago

i tested, and this does fix the issue.

#3 @apeatling
18 years ago

  • Resolution → fixed
  • Status new → closed

(In [1477]) Fixes #737 props DJPaul

#4 @(none)
17 years ago

  • Milestone Groups 1.1

Milestone Groups 1.1 deleted

Note: See TracTickets for help on using tickets.