Skip to:
Content

BuddyPress.org

Changeset 2772


Ignore:
Timestamp:
02/23/2010 11:04:00 AM (14 years ago)
Author:
apeatling
Message:

Fixing SQL error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-blogs/bp-blogs-classes.php

    r2769 r2772  
    291291
    292292        /* Fetch the blog description for each blog (as it may be empty we can't fetch it in the main query). */
    293         $blog_descs = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id, meta_value as description FROM {$bp->blogs->table_name_blogmeta} WHERE meta_key = 'description' blog_id IN ( {$blog_ids} )" ) );
     293        $blog_descs = $wpdb->get_results( $wpdb->prepare( "SELECT blog_id, meta_value as description FROM {$bp->blogs->table_name_blogmeta} WHERE meta_key = 'description' AND blog_id IN ( {$blog_ids} )" ) );
    294294
    295295        for ( $i = 0; $i < count( $paged_blogs ); $i++ ) {
Note: See TracChangeset for help on using the changeset viewer.