Skip to:
Content

BuddyPress.org

Ticket #5002: 5002.diff

File 5002.diff, 577 bytes (added by ericlewis, 12 years ago)
  • bp-groups/bp-groups-classes.php

     
    442442                }
    443443
    444444                if ( ! empty( $r['user_id'] ) ) {
    445                         $total_sql['where'][] = "m.group_id = g.id AND m.user_id = {$user_id} AND m.is_confirmed = 1 AND m.is_banned = 0";
     445                        $total_sql['where'][] = "m.group_id = g.id AND m.user_id = {$r['user_id']} AND m.is_confirmed = 1 AND m.is_banned = 0";
    446446                }
    447447
    448448                // Already escaped in the paginated results block