Do only one empty check. Clean up whitespace. Props SergeyBiryukov. see #15458
git-svn-id: http://svn.automattic.com/wordpress/trunk@18906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
599965885b
commit
2f40f0c6fc
|
@ -683,11 +683,9 @@ function get_blogs_of_user( $id, $all = false ) {
|
||||||
|
|
||||||
if ( false === $blogs ) {
|
if ( false === $blogs ) {
|
||||||
$userkeys = get_user_meta( (int) $id );
|
$userkeys = get_user_meta( (int) $id );
|
||||||
if ( empty( $userkeys ) )
|
|
||||||
return false;
|
|
||||||
$userkeys = array_keys( $userkeys );
|
|
||||||
if ( empty( $userkeys ) )
|
if ( empty( $userkeys ) )
|
||||||
return false;
|
return false;
|
||||||
|
$userkeys = array_keys( $userkeys );
|
||||||
|
|
||||||
$blogs = $match = array();
|
$blogs = $match = array();
|
||||||
$prefix_length = strlen( $wpdb->base_prefix );
|
$prefix_length = strlen( $wpdb->base_prefix );
|
||||||
|
|
Loading…
Reference in New Issue