Skip to:
Content

Changeset 6573


Ignore:
Timestamp:
12/08/12 05:13:55 (17 months ago)
Author:
r-a-y
Message:

Fix wpdb::prepare() warnings in BP_Groups_Group::get_group_type_ids(). See #4654.

File:
1 edited

Legend:

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

    r6500 r6573  
    759759        $ids = array(); 
    760760 
    761         $ids['all']     = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name}" ) ); 
    762         $ids['public']  = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'public'" ) ); 
    763         $ids['private'] = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'private'" ) ); 
    764         $ids['hidden']  = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'hidden'" ) ); 
     761        $ids['all']     = $wpdb->get_col( "SELECT id FROM {$bp->groups->table_name}" ); 
     762        $ids['public']  = $wpdb->get_col( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'public'" ); 
     763        $ids['private'] = $wpdb->get_col( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'private'" ); 
     764        $ids['hidden']  = $wpdb->get_col( "SELECT id FROM {$bp->groups->table_name} WHERE status = 'hidden'" ); 
    765765 
    766766        return $ids; 
Note: See TracChangeset for help on using the changeset viewer.