Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/06/2014 03:03:10 AM (10 years ago)
Author:
r-a-y
Message:

Forgot missing $bp variable in r8057.

Boo r-a-y.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r8057 r8059  
    23302330    public static function get_invite_count_for_user( $user_id = 0 ) {
    23312331        global $wpdb;
     2332
     2333        $bp = buddypress();
    23322334
    23332335        return (int) $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(DISTINCT m.group_id) FROM {$bp->groups->table_name_members} m, {$bp->groups->table_name} g WHERE m.group_id = g.id AND m.is_confirmed = 0 AND m.inviter_id != 0 AND m.invite_sent = 1 AND m.user_id = %d {$exclude_sql} ORDER BY date_modified ASC", $user_id ) );
Note: See TracChangeset for help on using the changeset viewer.