WordPress.org

WordPress MU

Changeset 1373


Ignore:
Timestamp:
07/11/08 16:12:47 (6 years ago)
Author:
donncha
Message:

Make sure the site_id is always set to something. Fixes #600, but presumes it's site_id 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wpmu-settings.php

    r1326 r1373  
    135135$blog_id = $current_blog->blog_id; 
    136136$public  = $current_blog->public; 
     137 
     138if( $current_blog->site_id == 0 || $current_blog->site_id == '' ) 
     139    $current_blog->site_id = 1; 
    137140$site_id = $current_blog->site_id; 
    138141 
    139 if( $site_id == 0 ) 
    140     $site_id = 1; 
    141142 
    142143$current_site->site_name = $wpdb->get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = '$site_id' AND meta_key = 'site_name'" ); 
Note: See TracChangeset for help on using the changeset viewer.