fix type issue
This commit is contained in:
parent
fa35318bd4
commit
84587fccc3
|
@ -8,10 +8,10 @@ $_ = [
|
||||||
'player' => null,
|
'player' => null,
|
||||||
];
|
];
|
||||||
|
|
||||||
$personRequested = $_GET['p'] ?? null;
|
$personRequested = (string) ($_GET['p'] ?? '');
|
||||||
|
|
||||||
foreach ($persons as $hash => $person) {
|
foreach ($persons as $hash => $person) {
|
||||||
if ($personRequested === $hash) {
|
if ($personRequested === (string) $hash) {
|
||||||
$_['player'] = $person;
|
$_['player'] = $person;
|
||||||
$_['hash'] = $personRequested;
|
$_['hash'] = $personRequested;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue