Skip to:
Content

BuddyPress.org

Changeset 3836


Ignore:
Timestamp:
01/22/2011 03:58:55 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Fallback on root blog if $current_blog is not set yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-functions.php

    r3778 r3836  
    268268    global $wpdb, $current_blog;
    269269
    270     if ( empty( $blog_id ) )
     270    if ( empty( $blog_id ) && isset( $current_blog ) )
    271271        $blog_id = $current_blog->blog_id;
     272    else
     273        $blog_id = BP_ROOT_BLOG;
    272274
    273275    if ( empty( $role ) ) {
Note: See TracChangeset for help on using the changeset viewer.