We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce7869d commit 0fd26afCopy full SHA for 0fd26af
resources/lib/UnityHTTPD.php
@@ -243,10 +243,10 @@ public static function getPostData(string $key): string
243
}
244
245
/* returns null if not found and not $throw_if_not_found */
246
- public static function getQueryParameter(string $key, bool $throw_if_not_found = true): ?string
+ public static function getQueryParameter(string $key, bool $die_if_not_found = true): ?string
247
{
248
if (!array_key_exists($key, $_GET)) {
249
- if ($throw_if_not_found) {
+ if ($die_if_not_found) {
250
self::badRequest("\$_GET has no array key '$key'");
251
} else {
252
return null;
0 commit comments