summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 14:47:32 +0100
committermsquare <msquare@notrademark.de>2017-11-19 14:47:32 +0100
commitf8807c4efbbddd02c69d0af63a1bf348b051d078 (patch)
tree66cdab0e2350dbb86cb21c2028d94377a97a0fa0 /src
parent86e41e29491bcd7767dcac5df2158b4ead8b1aff (diff)
fix behaviour of HTTP/Request get
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 e7850c8b..585fb5e9 100644
--- a/src/Http/Request.php
+++ b/src/Http/Request.php
@@ -38,9 +38,9 @@ class Request extends SymfonyRequest
*/
public function has($key)
{
- $value = $this->input($key);
+ $value = $this->input($key, null);
- return !empty($value);
+ return !($value === null);
}
/**