Skip to:
Content

BuddyPress.org

Changeset 3613


Ignore:
Timestamp:
12/30/2010 03:31:56 PM (16 years ago)
Author:
boonebgorges
Message:

Fixes PHP warnings in setup wizard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-upgrade.php

    r3603 r3613  
    893893
    894894                        // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on
    895                         if ( $current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )
     895                        if ( !empty( $current_blog->blog_id ) && $current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )
    896896                                switch_to_blog( BP_ROOT_BLOG );
    897897
     
    906906                        update_option( 'bp-pages', $bp_pages );
    907907
    908                         if ( $current_blog->blog_id != BP_ROOT_BLOG )
     908                        if ( !empty( $current_blog->blog_id ) && $current_blog->blog_id != BP_ROOT_BLOG )
    909909                                restore_current_blog();
    910910
Note: See TracChangeset for help on using the changeset viewer.