Do only one empty check. Clean up whitespace. Props SergeyBiryukov. see #15458

git-svn-id: https://develop.svn.wordpress.org/trunk@18906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-10-06 19:13:44 +00:00
parent 3932ffbff8
commit 7af65a1402
1 changed files with 1 additions and 3 deletions

View File

@ -683,11 +683,9 @@ function get_blogs_of_user( $id, $all = false ) {
if ( false === $blogs ) {
$userkeys = get_user_meta( (int) $id );
if ( empty( $userkeys ) )
return false;
$userkeys = array_keys( $userkeys );
if ( empty( $userkeys ) )
return false;
$userkeys = array_keys( $userkeys );
$blogs = $match = array();
$prefix_length = strlen( $wpdb->base_prefix );