summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Http/Request.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Http/Request.php b/src/Http/Request.php
index 2efd1e1d..3ff027d5 100644
--- a/src/Http/Request.php
+++ b/src/Http/Request.php
@@ -67,7 +67,7 @@ class Request
{
$data = $this->request + $this->query;
- if (!empty($data[$key])) {
+ if (isset($data[$key])) {
return $data[$key];
}
@@ -84,7 +84,7 @@ class Request
{
$value = $this->input($key);
- return !empty($value);
+ return !(empty($value) && strlen($value) == 0);
}
/**