diff --git a/wp-admin/ms-upgrade-site.php b/wp-admin/ms-upgrade-site.php index 2d341c0a61..f741be6d74 100644 --- a/wp-admin/ms-upgrade-site.php +++ b/wp-admin/ms-upgrade-site.php @@ -16,7 +16,10 @@ if ( !is_super_admin() ) echo '
'; screen_icon(); echo '

'.__('Upgrade Site').'

'; -switch( $_GET['action'] ) { + +$action = isset($_GET['action']) ? $_GET['action'] : 'show'; + +switch ( $action ) { case "upgrade": $n = ( isset($_GET['n']) ) ? intval($_GET['n']) : 0; @@ -28,14 +31,13 @@ switch( $_GET['action'] ) { $blogs = $wpdb->get_results( "SELECT * FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' AND spam = '0' AND deleted = '0' AND archived = '0' ORDER BY registered DESC LIMIT {$n}, 5", ARRAY_A ); if ( is_array( $blogs ) ) { echo "