fix array input has.

This commit is contained in:
Taylor Otwell
2013-03-28 15:35:09 -05:00
parent 88cde2c91d
commit c1a8b83574

View File

@@ -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)) !== '';
} }