Changeset 2103
- Timestamp:
- 11/24/2009 01:51:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-groups/bp-groups-classes.php
r2087 r2103 423 423 424 424 if ( $only_public ) 425 $public_sql = $wpdb->prepare( " WHEREg.status = 'public'" );425 $public_sql = $wpdb->prepare( " AND g.status = 'public'" ); 426 426 427 427 if ( !is_site_admin() ) … … 438 438 switch ( $sort_by ) { 439 439 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}" ); 441 441 break; 442 442 case 'members':
Note: See TracChangeset
for help on using the changeset viewer.