Changeset 3257 for branches/1.2/bp-groups/bp-groups-classes.php
- Timestamp:
- 09/12/2010 02:29:29 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
r3229 r3257 777 777 778 778 function accept_invite() { 779 $this->inviter_id = 0;780 $this->is_confirmed = 1;779 $this->inviter_id = 0; 780 $this->is_confirmed = 1; 781 781 $this->date_modified = bp_core_current_time(); 782 783 update_user_meta( $this->user_id, 'total_group_count', (int)get_user_meta( $this->user_id, 'total_group_count', true ) + 1 ); 782 784 } 783 785 … … 785 787 $this->is_confirmed = 1; 786 788 $this->date_modified = bp_core_current_time(); 787 } 788 789 function remove( $user_id, $group_id ) { 790 global $wpdb, $bp; 791 792 $sql = $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d", $user_id, $group_id ); 789 790 update_user_meta( $this->user_id, 'total_group_count', (int)get_user_meta( $this->user_id, 'total_group_count', true ) + 1 ); 791 } 792 793 function remove() { 794 global $wpdb, $bp; 795 796 $sql = $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d", $this->user_id, $this->group_id ); 793 797 794 798 if ( !$result = $wpdb->query( $sql ) )
Note: See TracChangeset
for help on using the changeset viewer.