From 5ac6eb4ad3e96295365320102fff5128cd6c4d5f Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Sat, 22 Oct 2022 02:35:44 +0200 Subject: [PATCH] Fix warning --- get.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get.php b/get.php index 60cd2e5..3f3e1e2 100644 --- a/get.php +++ b/get.php @@ -10,7 +10,8 @@ $noLinks = isset($_GET['noLinks']) ? $_GET['noLinks'] : 0; header('Content-Type: application/json'); -$resource = hash('sha1', strtolower("get-$updateId-$usePack-$desiredEdition")); +$edition = is_array($desiredEdition) ? implode('_', $desiredEdition) : $desiredEdition; +$resource = hash('sha1', strtolower("get-$updateId-$usePack-$edition")); if(checkIfUserIsRateLimited($resource) && !$noLinks) { http_response_code(429); sendResponse(['error' => 'USER_RATE_LIMITED']);