WordPress.org

Make WordPress Core

Changeset 18905


Ignore:
Timestamp:
10/06/2011 06:49:38 PM (10 years ago)
Author:
ryan
Message:

Avoid Warning: array_keys() expects parameter 1 to be array, boolean given. see #15458

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r18812 r18905  
    683683
    684684    if ( false === $blogs ) {
    685         $userkeys = array_keys( get_user_meta( (int) $id ) );
     685        $userkeys = get_user_meta( (int) $id );
     686        if ( empty( $userkeys ) )
     687                        return false;
     688        $userkeys = array_keys( $userkeys );
    686689        if ( empty( $userkeys ) )
    687690            return false;
Note: See TracChangeset for help on using the changeset viewer.