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:
parent
6802efce35
commit
dfc7ce5f38
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in New Issue