|
|
|
@ -1417,8 +1417,7 @@ function _api_format_user($user, $add_password = false) |
|
|
|
} |
|
|
|
} |
|
|
|
$image_sys_path = api_get_path(SYS_CODE_PATH).$dir.$picture_filename; |
|
|
|
$image_sys_path = api_get_path(SYS_CODE_PATH).$dir.$picture_filename; |
|
|
|
|
|
|
|
|
|
|
|
if ($picture_filename) { |
|
|
|
if ($picture_filename && file_exists($image_sys_path)) { |
|
|
|
if (file_exists($image_sys_path)) { |
|
|
|
|
|
|
|
$result['avatar'] = api_get_path(WEB_CODE_PATH).$dir.$picture_filename; |
|
|
|
$result['avatar'] = api_get_path(WEB_CODE_PATH).$dir.$picture_filename; |
|
|
|
$result['avatar_small'] = api_get_path(WEB_CODE_PATH).$dir.'small_'.$picture_filename; |
|
|
|
$result['avatar_small'] = api_get_path(WEB_CODE_PATH).$dir.'small_'.$picture_filename; |
|
|
|
$result['avatar_sys_path'] = api_get_path(SYS_CODE_PATH).$dir.$picture_filename; |
|
|
|
$result['avatar_sys_path'] = api_get_path(SYS_CODE_PATH).$dir.$picture_filename; |
|
|
|
@ -1438,7 +1437,6 @@ function _api_format_user($user, $add_password = false) |
|
|
|
$result[$key] = UserManager::getGravatar($userEmail, $avatarSize, $gravatarType); |
|
|
|
$result[$key] = UserManager::getGravatar($userEmail, $avatarSize, $gravatarType); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($user['user_is_online'])) { |
|
|
|
if (isset($user['user_is_online'])) { |
|
|
|
$result['user_is_online'] = $user['user_is_online'] == true ? 1 : 0; |
|
|
|
$result['user_is_online'] = $user['user_is_online'] == true ? 1 : 0; |
|
|
|
|