Changeset 7180
- Timestamp:
- 06/07/2013 01:31:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r7179 r7180 1265 1265 groups_update_groupmeta( $this->group_id, 'total_member_count', ( (int) groups_get_groupmeta( $this->group_id, 'total_member_count' ) - 1 ) ); 1266 1266 1267 $group_count = bp_get_user_meta( $this->user_id, 'total_group_count', true );1268 if ( !empty( $group_count ) )1269 bp_update_user_meta( $this->user_id, 'total_group_count', (int) $group_count - 1 );1270 1271 1267 return $this->save(); 1272 1268 } … … 1285 1281 1286 1282 function accept_invite() { 1287 1288 1283 $this->inviter_id = 0; 1289 1284 $this->is_confirmed = 1; … … 1292 1287 1293 1288 function accept_request() { 1294 1295 1289 $this->is_confirmed = 1; 1296 1290 $this->date_modified = bp_core_current_time();
Note: See TracChangeset
for help on using the changeset viewer.