Skip to:
Content

BuddyPress.org

Ticket #6462: 6462.02.patch

File 6462.02.patch, 733 bytes (added by imath, 9 years ago)
  • src/bp-groups/classes/class-bp-groups-member.php

    diff --git src/bp-groups/classes/class-bp-groups-member.php src/bp-groups/classes/class-bp-groups-member.php
    index 06a0705..cbebf75 100644
    class BP_Groups_Member { 
    733733
    734734                $bp = buddypress();
    735735
    736                 return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d AND is_confirmed = 0 AND inviter_id != 0 AND invite_sent = 1", $user_id, $group_id ) );
     736                return $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->groups->table_name_members} WHERE user_id = %d AND group_id = %d AND is_confirmed = 0 AND inviter_id != 0", $user_id, $group_id ) );
    737737        }
    738738
    739739        /**