Check for existence of the query var before switch(). Fixes a notice on Multisite users page.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-01-31 11:11:45 +00:00
parent 1bfbe0dde2
commit a950dbf3f6
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ wp_enqueue_script('password-strength-meter');
require_once ('admin-header.php');
if ( is_multisite() ) {
switch( $_GET[ 'update' ] ) {
if ( isset($_GET[ 'update' ]) && is_multisite() ) {
switch ( $_GET[ 'update' ] ) {
case "newuserconfimation":
$messages[] = '<div id="message" class="updated fade"><p>' . __('Invitation email sent to new user. A confirmation link must be clicked before their account is created.') . '</p></div>';
break;