This commit is contained in:
xl
2023-11-11 11:34:48 +08:00
parent b323efbf19
commit 5362dd2668
+1 -1
View File
@@ -672,7 +672,7 @@ class Request implements ServerRequestInterface
public function queryInt(string $name, int $default = 0): int
{
$data = $this->getQueryParams();
if (!isset($data[$name])) {
if (isset($data[$name])) {
return (int)$data[$name];
}
return $default;