This commit is contained in:
Lanta 2023-11-14 19:52:25 +01:00
parent c9a4fabb8d
commit 8d91c0b3ab

View file

@ -2,7 +2,7 @@
// Check if a match ID is provided in the GET request // Check if a match ID is provided in the GET request
if (isset($_GET['matchid'])) { if (isset($_GET['matchid'])) {
$matchId = $_GET['matchid']; $matchId = $_GET['matchid'];
$filename = $matchId . ".json"; $filename = "matches/" . $matchId . ".json";
// Check if the JSON file for the given match ID exists // Check if the JSON file for the given match ID exists
if (file_exists($filename)) { if (file_exists($filename)) {