summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-06 10:29:28 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-06 10:29:28 +0000
commitc2ef13bd21bd6e6f7f0841b810cd33fc26347889 (patch)
tree2440f5b09e08c4fa9a9b3dfa523abebd5db9f395
parente45949fbbdb8ee7e63099c97f6b5f60bb310e6a3 (diff)
Make sure we always have a valid site_id
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@134 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-settings.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php
index 7b3be96..91bdba4 100644
--- a/wp-inst/wp-settings.php
+++ b/wp-inst/wp-settings.php
@@ -82,6 +82,8 @@ if( $current_blog == false ) {
$blog_id = $current_blog->blog_id;
$is_public = $current_blog->is_public;
$site_id = $current_blog->site_id;
+if( $site_id == 0 )
+ $site_id = 1;
$current_site = $wpdb->get_row("SELECT * FROM $wpdb->site WHERE id='$site_id'");
if( $current_site == false ) {