Changeset 3145 for branches/1.2/bp-groups/bp-groups-classes.php
- Timestamp:
- 07/22/2010 11:09:28 AM (16 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-groups/bp-groups-classes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-groups/bp-groups-classes.php
r3143 r3145 749 749 groups_update_groupmeta( $this->group_id, 'total_member_count', ( (int) groups_get_groupmeta( $this->group_id, 'total_member_count' ) - 1 ) ); 750 750 751 $group_count = get_user meta( $this->user_id, 'total_group_count');751 $group_count = get_user_meta( $this->user_id, 'total_group_count', true ); 752 752 if ( !empty( $group_count ) ) 753 update_user meta( $this->user_id, 'total_group_count', (int)$group_count - 1 );753 update_user_meta( $this->user_id, 'total_group_count', (int)$group_count - 1 ); 754 754 755 755 return $this->save(); … … 763 763 764 764 groups_update_groupmeta( $this->group_id, 'total_member_count', ( (int) groups_get_groupmeta( $this->group_id, 'total_member_count' ) + 1 ) ); 765 update_user meta( $this->user_id, 'total_group_count', (int)get_usermeta( $this->user_id, 'total_group_count') + 1 );765 update_user_meta( $this->user_id, 'total_group_count', (int)get_user_meta( $this->user_id, 'total_group_count', true ) + 1 ); 766 766 767 767 return $this->save();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)