Fix profile permalink

This commit is contained in:
champsupertramp
2016-03-22 15:32:14 +08:00
parent 5a74e0d7de
commit cb2194c8be
3 changed files with 113 additions and 18 deletions
+1 -1
View File
@@ -895,7 +895,7 @@ class UM_User {
}
$ids = get_users(array( 'fields' => 'ID', 'meta_key' => 'full_name','meta_value' => $value ,'meta_compare' => '=') );
if ( isset( $ids[0] ) )
if ( isset( $ids[0] ) && ! empty( $ids[0] ) )
return $ids[0];
return false;