Skip to:
Content

BuddyPress.org

Changeset 6496


Ignore:
Timestamp:
11/08/2012 07:25:19 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Suppress prepare() warning in bp_update_meta_cache() the same way WP's is suppressed; pass $object_type through as unused parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-cache.php

    r6342 r6496  
    103103    // Get meta info
    104104    $id_list   = join( ',', $object_ids );
    105     $meta_list = $wpdb->get_results( $wpdb->prepare( "SELECT $object_column, meta_key, meta_value FROM $meta_table WHERE $object_column IN ($id_list)" ), ARRAY_A );
     105    $meta_list = $wpdb->get_results( $wpdb->prepare( "SELECT {$object_column}, meta_key, meta_value FROM {$meta_table} WHERE {$object_column} IN ($id_list)", $object_type ), ARRAY_A );
    106106
    107107    if ( !empty( $meta_list ) ) {
Note: See TracChangeset for help on using the changeset viewer.