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:
parent
779f739cca
commit
47548d6b7d
|
@ -103,7 +103,8 @@ switch ( $_GET['action'] ) {
|
||||||
$users = get_users_of_blog( get_site_option( 'dashboard_blog' ) );
|
$users = get_users_of_blog( get_site_option( 'dashboard_blog' ) );
|
||||||
$move_users = array();
|
$move_users = array();
|
||||||
foreach ( (array)$users as $user ) {
|
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;
|
$move_users[] = $user->user_id;
|
||||||
}
|
}
|
||||||
if ( false == empty( $move_users ) ) {
|
if ( false == empty( $move_users ) ) {
|
||||||
|
|
Loading…
Reference in New Issue