Skip to:
Content

BuddyPress.org

Changeset 2103


Ignore:
Timestamp:
11/24/2009 01:51:31 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1284 props MrMaz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bp-groups/bp-groups-classes.php

    r2087 r2103  
    423423
    424424        if ( $only_public )
    425             $public_sql = $wpdb->prepare( " WHERE g.status = 'public'" );
     425            $public_sql = $wpdb->prepare( " AND g.status = 'public'" );
    426426
    427427        if ( !is_site_admin() )
     
    438438            switch ( $sort_by ) {
    439439                default:
    440                     $sql = $wpdb->prepare( "SELECT * FROM {$bp->groups->table_name} g {$public_sql} {$hidden_sql} {$order_sql} {$pag_sql}" );
     440                    $sql = $wpdb->prepare( "SELECT * FROM {$bp->groups->table_name} g WHERE 1=1 {$public_sql} {$hidden_sql} {$order_sql} {$pag_sql}" );
    441441                    break;
    442442                case 'members':
Note: See TracChangeset for help on using the changeset viewer.