Commit c1a8b835 by Taylor Otwell

fix array input has.

parent 88cde2c9
...@@ -40,6 +40,8 @@ class Input { ...@@ -40,6 +40,8 @@ class Input {
*/ */
public static function has($key) public static function has($key)
{ {
if (is_array(static::get($key))) return true;
return trim((string) static::get($key)) !== ''; return trim((string) static::get($key)) !== '';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment