Check if VHOST is defined in get_id_from_blogname()

git-svn-id: https://develop.svn.wordpress.org/trunk@12643 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2010-01-07 10:52:21 +00:00
parent f992a598bb
commit 6388f7113b
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ function get_id_from_blogname( $name ) {
if ( $blog_id )
return $blog_id;
if( constant( 'VHOST' ) == 'yes' ) {
if ( defined('VHOST') && constant( 'VHOST' ) == 'yes' ) {
$domain = $name . '.' . $current_site->domain;
$path = $current_site->path;
} else {