summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-04-13 10:14:36 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-04-13 10:14:36 +0000
commit03ec11465b6e8058cb9b904e9ab111ed7d92fd75 (patch)
tree955b1d819c1b26bce41f3b39290d5216bfbae0fe /wp-signup.php
parent382953d478f1adb82ec36189272b82a6d82c9970 (diff)
downloadwordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.tar.gz
wordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.tar.xz
wordpress-mu-03ec11465b6e8058cb9b904e9ab111ed7d92fd75.zip
Check the illegal names is set before checking against it
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@961 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-signup.php b/wp-signup.php
index 0ce1087..d0b6e6f 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -356,7 +356,7 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name, $user_emai
}
// Main
-if( in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
+if( !empty( get_site_option( 'illegal_names' ) ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
header( "Location: http://{$current_site->domain}{$current_site->path}" );
die();
}