1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

dont error hard for "special" steamids

This commit is contained in:
Robin Appelman 2019-03-21 18:34:32 +01:00
commit f6f9622d5f

View file

@ -22,7 +22,11 @@ class UserController extends BaseController {
public function get($steamId) {
if (!is_numeric($steamId)) {
try {
$steamId = Parser::convertSteamIdToCommunityId($steamId);
} catch (\InvalidArgumentException $e) {
}
}
\Flight::json($this->userProvider->get($steamId));
}