fix warning in ms-edit.php

git-svn-id: http://svn.automattic.com/wordpress/trunk@14910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-05-25 23:27:15 +00:00
parent 6802efce35
commit dfc7ce5f38
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ switch ( $_GET['action'] ) {
$users = get_users_of_blog( get_site_option( 'dashboard_blog' ) );
$move_users = array();
foreach ( (array)$users as $user ) {
if ( array_pop( array_keys( unserialize( $user->meta_value ) ) ) == 'subscriber' )
$user_meta_value = unserialize( $user->meta_value );
if ( is_array( $user_meta_value ) && array_pop( array_keys( $user_meta_value ) ) == 'subscriber' )
$move_users[] = $user->user_id;
}
if ( false == empty( $move_users ) ) {