Browse Source

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

Taylor Otwell 11 years ago
parent
commit
727b69494b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/input.php

+ 2 - 0
laravel/input.php

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