fix type issue

This commit is contained in:
Simon Vieille 2020-11-01 13:13:56 +01:00
parent fa35318bd4
commit 84587fccc3
Signed by: deblan
GPG key ID: 03383D15A1D31745

View file

@ -8,10 +8,10 @@ $_ = [
'player' => null,
];
$personRequested = $_GET['p'] ?? null;
$personRequested = (string) ($_GET['p'] ?? '');
foreach ($persons as $hash => $person) {
if ($personRequested === $hash) {
if ($personRequested === (string) $hash) {
$_['player'] = $person;
$_['hash'] = $personRequested;
}