From 727b69494b4938f38c9f8dad0f83920e2cc2303b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 14 May 2013 00:41:39 -0500 Subject: [PATCH] Check arrays on Input::had. Closes #1988. --- laravel/input.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/laravel/input.php b/laravel/input.php index 84424570..7ddb1b02 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -160,6 +160,8 @@ public static function except($keys) */ public static function had($key) { + if (is_array(static::old($key))) return true; + return trim((string) static::old($key)) !== ''; }