Fix condition

This commit is contained in:
ErickSkrauch 2024-06-11 04:06:56 +02:00
parent 345bc80d05
commit 46c5a0f878
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -49,7 +49,7 @@ class SkinsSystemApi {
$query['onUnknownProfileRespondWithUuid'] = $fallbackUuid; $query['onUnknownProfileRespondWithUuid'] = $fallbackUuid;
} }
$url = "/profile/{$username}" . empty($query) ? '' : http_build_query($query); $url = "/profile/{$username}" . (empty($query) ? '' : http_build_query($query));
$response = $this->getClient()->request('GET', $this->buildUrl($url)); $response = $this->getClient()->request('GET', $this->buildUrl($url));
if ($response->getStatusCode() !== 200) { if ($response->getStatusCode() !== 200) {
return null; return null;