diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 1c9d978c7d..744b5c87ed 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -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[] = '

' . __('Invitation email sent to new user. A confirmation link must be clicked before their account is created.') . '

'; break;