Changeset 8069 for trunk/bp-groups/bp-groups-classes.php
- Timestamp:
- 03/06/2014 07:58:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r8061 r8069 1455 1455 * - *Pending and unsent invitations* are entries with is_confirmed = 0 and 1456 1456 * inviter_id != 0 and invite_sent = 0 1457 * - *Membership requests* are entries with is_confirmed = 0 and 1458 * inviter_id = 0 (and invite_sent = 0) 1457 1459 * 1458 1460 * @since BuddyPress (1.8.0) … … 1723 1725 1724 1726 $bp = buddypress(); 1725 $extras = $wpdb->get_results( $wpdb->prepare( "SELECT user_id, date_modified, is_banned FROM {$bp->groups->table_name_members} WHERE user_id IN ({$user_ids_sql}) AND group_id = %d", $this->query_vars['group_id'] ) );1727 $extras = $wpdb->get_results( $wpdb->prepare( "SELECT id, user_id, date_modified, is_admin, is_mod, comments, user_title, invite_sent, is_confirmed, inviter_id, is_banned FROM {$bp->groups->table_name_members} WHERE user_id IN ({$user_ids_sql}) AND group_id = %d", $this->query_vars['group_id'] ) ); 1726 1728 1727 1729 foreach ( (array) $extras as $extra ) { … … 1729 1731 // user_id is provided for backward compatibility 1730 1732 $this->results[ $extra->user_id ]->user_id = (int) $extra->user_id; 1733 $this->results[ $extra->user_id ]->is_admin = (int) $extra->is_admin; 1734 $this->results[ $extra->user_id ]->is_mod = (int) $extra->is_mod; 1731 1735 $this->results[ $extra->user_id ]->is_banned = (int) $extra->is_banned; 1732 1736 $this->results[ $extra->user_id ]->date_modified = $extra->date_modified; 1737 $this->results[ $extra->user_id ]->user_title = $extra->user_title; 1738 $this->results[ $extra->user_id ]->comments = $extra->comments; 1739 $this->results[ $extra->user_id ]->invite_sent = (int) $extra->invite_sent; 1740 $this->results[ $extra->user_id ]->inviter_id = (int) $extra->inviter_id; 1741 $this->results[ $extra->user_id ]->is_confirmed = (int) $extra->is_confirmed; 1742 $this->results[ $extra->user_id ]->membership_id = (int) $extra->id; 1733 1743 } 1734 1744 }
Note: See TracChangeset
for help on using the changeset viewer.