eee
This commit is contained in:
+1
-1
@@ -672,7 +672,7 @@ class Request implements ServerRequestInterface
|
|||||||
public function queryInt(string $name, int $default = 0): int
|
public function queryInt(string $name, int $default = 0): int
|
||||||
{
|
{
|
||||||
$data = $this->getQueryParams();
|
$data = $this->getQueryParams();
|
||||||
if (!isset($data[$name])) {
|
if (isset($data[$name])) {
|
||||||
return (int)$data[$name];
|
return (int)$data[$name];
|
||||||
}
|
}
|
||||||
return $default;
|
return $default;
|
||||||
|
|||||||
Reference in New Issue
Block a user