diff --git a/public/index.php b/public/index.php index 1ac5c57..615693b 100644 --- a/public/index.php +++ b/public/index.php @@ -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; }