fix problem where 0 is not recognized as get value
This commit is contained in:
parent
a157004f4a
commit
908f5712cc
|
@ -67,7 +67,7 @@ class Request
|
||||||
{
|
{
|
||||||
$data = $this->request + $this->query;
|
$data = $this->request + $this->query;
|
||||||
|
|
||||||
if (!empty($data[$key])) {
|
if (isset($data[$key])) {
|
||||||
return $data[$key];
|
return $data[$key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class Request
|
||||||
{
|
{
|
||||||
$value = $this->input($key);
|
$value = $this->input($key);
|
||||||
|
|
||||||
return !empty($value);
|
return !(empty($value) && strlen($value) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue