Skip to:
Content

BuddyPress.org

Ticket #2951: 2951.diff

File 2951.diff, 830 bytes (added by wpmuguru, 14 years ago)
  • bp-loader.php

     
    127127               
    128128        $root_blog_meta_keys = "'" . implode( "','", (array)$root_blog_options ) ."'";
    129129       
    130         $root_blog_meta_table = BP_ROOT_BLOG == 1 ? $wpdb->base_prefix . 'options' : $wpdb->base_prefix . BP_ROOT_BLOG . '_options';
     130        $root_blog_meta_table = $wpdb->get_blog_prefix( BP_ROOT_BLOG ) . 'options';
    131131        $root_blog_meta = $wpdb->get_results( $wpdb->prepare( "SELECT option_name AS name, option_value AS value FROM {$root_blog_meta_table} WHERE option_name IN ({$root_blog_meta_keys})" ) );
    132132
    133133        $site_options = array();
     
    172172}
    173173register_deactivation_hook( 'buddypress/bp-loader.php', 'bp_loader_deactivate' );
    174174
    175 ?>
    176  No newline at end of file
     175?>