From 84587fccc390d81ae6b2802ccd4aaffdc90fef02 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 1 Nov 2020 13:13:56 +0100 Subject: [PATCH] fix type issue --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }