From dfc7ce5f3844458755a95fb9df4b91c02a7b9f6d Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Tue, 25 May 2010 23:27:15 +0000 Subject: [PATCH] fix warning in ms-edit.php git-svn-id: http://svn.automattic.com/wordpress/trunk@14910 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/ms-edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 8307bf851f..23419192b5 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -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 ) ) {