Browse Source

fix array input has.

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

+ 2 - 0
laravel/input.php

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