Changeset 3613 for trunk/bp-core/admin/bp-core-upgrade.php
- Timestamp:
- 12/30/2010 03:31:56 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/admin/bp-core-upgrade.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-upgrade.php
r3603 r3613 893 893 894 894 // 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' ) ) 896 896 switch_to_blog( BP_ROOT_BLOG ); 897 897 … … 906 906 update_option( 'bp-pages', $bp_pages ); 907 907 908 if ( $current_blog->blog_id != BP_ROOT_BLOG )908 if ( !empty( $current_blog->blog_id ) && $current_blog->blog_id != BP_ROOT_BLOG ) 909 909 restore_current_blog(); 910 910
Note: See TracChangeset
for help on using the changeset viewer.