diff options
author | msquare <msquare@notrademark.de> | 2017-07-23 12:02:37 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-07-23 12:02:37 +0200 |
commit | 908f5712cc97f9476de7a9530b5b3289c5deaf1d (patch) | |
tree | 69597e1797bbe6f0c264ffed80f517342262dcf2 /src/Http/Request.php | |
parent | a157004f4aefaa5e2265f852f9432becedee1d66 (diff) |
fix problem where 0 is not recognized as get value
Diffstat (limited to 'src/Http/Request.php')
-rw-r--r-- | src/Http/Request.php | 4 |
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); } /** |