fix warning in ms-edit.php

git-svn-id: https://develop.svn.wordpress.org/trunk@14910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-05-25 23:27:15 +00:00
parent 779f739cca
commit 47548d6b7d
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 ) ) {