Ticket #2319: group_meta.diff
File group_meta.diff, 771 bytes (added by , 14 years ago) |
---|
-
bp-groups/bp-groups-classes.php
128 128 $user_ids = implode( ',', (array)$user_ids ); 129 129 130 130 /* Modify group count usermeta for members */ 131 $wpdb->query( $wpdb->prepare( "UPDATE {$ bp->groups->table_name_groupmeta} SET meta_value = meta_value - 1 WHERE meta_key = 'total_group_count' AND user_id IN ( {$user_ids} )" ) );131 $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->usermeta} SET meta_value = meta_value - 1 WHERE meta_key = 'total_group_count' AND user_id IN ( {$user_ids} )" ) ); 132 132 133 133 /* Now delete all group member entries */ 134 134 BP_Groups_Member::delete_all( $this->id );