From c1a8b83574869e0936182bf4bea7b6c5a8e7a2cd Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 28 Mar 2013 15:35:09 -0500 Subject: [PATCH] fix array input has. --- laravel/input.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/input.php b/laravel/input.php index d9de36cb..84424570 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -40,6 +40,8 @@ class Input { */ public static function has($key) { + if (is_array(static::get($key))) return true; + return trim((string) static::get($key)) !== ''; }