Check arrays on Input::had. Closes #1988.

This commit is contained in:
Taylor Otwell
2013-05-14 00:41:39 -05:00
parent 6891fb7b21
commit 727b69494b

View File

@@ -160,6 +160,8 @@ class Input {
*/ */
public static function had($key) public static function had($key)
{ {
if (is_array(static::old($key))) return true;
return trim((string) static::old($key)) !== ''; return trim((string) static::old($key)) !== '';
} }