fix problem where empty string is not recognized as get value

This commit is contained in:
msquare 2017-07-23 12:11:50 +02:00
parent 4d08434d31
commit 2b834ba7f1
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ class Request
*/
public function has($key)
{
$value = $this->input($key);
$data = $this->request + $this->query;
return !(empty($value) && strlen($value) == 0);
return isset($data[$key]);
}
/**