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

git-svn-id: https://develop.svn.wordpress.org/trunk@12906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-01-31 11:11:45 +00:00
parent a60c842ba6
commit 0f51431087
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;