diff --git a/includes/hcard/class-user.php b/includes/hcard/class-user.php index fc44924..4aaa07b 100644 --- a/includes/hcard/class-user.php +++ b/includes/hcard/class-user.php @@ -263,7 +263,8 @@ public static function rest_fields() { 'me', array( 'get_callback' => function ( $user ) { - return array_values( self::get_rel_me( $user['id'] ) ); + $rel_me = self::get_rel_me( $user['id'] ); + return $rel_me ? array_values( $rel_me ) : array(); }, ) );