fix problem where empty string is not recognized as get value

main
msquare 8 years ago
parent 4d08434d31
commit 2b834ba7f1

@ -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]);
}
/**

Loading…
Cancel
Save