Fix undefined index "subdomain_install" in wp-admin/network.php. Props cyberhobo, SergeyBiryukov. Fixes #17697.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2011-09-16 21:20:43 +00:00
parent c93578bfbe
commit 708f95adba
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ if ( $_POST ) {
// create network tables
install_network();
$hostname = get_clean_basedomain();
$subdomain_install = !allow_subdomain_install() ? false : (bool) $_POST['subdomain_install'];
$subdomain_install = allow_subdomain_install() ? !empty( $_POST['subdomain_install'] ) : false;
if ( ! network_domain_check() ) {
$result = populate_network( 1, get_clean_basedomain(), sanitize_email( $_POST['email'] ), stripslashes( $_POST['sitename'] ), $base, $subdomain_install );
if ( is_wp_error( $result ) ) {