Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/09/2013 03:41:32 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Use wp_parse_id_list() in BP_XProfile_FieldData::get_value_byid(). See #4989 (1.7 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7/bp-xprofile/bp-xprofile-classes.php

    r6775 r7029  
    11321132
    11331133        if ( is_array( $user_ids ) ) {
    1134             $user_ids = implode( ',', (array) $user_ids );
     1134            $user_ids = implode( ',', wp_parse_id_list( $user_ids ) );
    11351135            $data = $wpdb->get_results( $wpdb->prepare( "SELECT user_id, value FROM {$bp->profile->table_name_data} WHERE field_id = %d AND user_id IN ({$user_ids})", $field_id ) );
    11361136        } else {
Note: See TracChangeset for help on using the changeset viewer.