Browse Source

clean up has_file method.

Taylor Otwell 12 years ago
parent
commit
d0cdfb971d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      laravel/input.php

+ 1 - 2
laravel/input.php

@@ -205,8 +205,7 @@ class Input {
 	 */
 	 */
 	public static function has_file($key)
 	public static function has_file($key)
 	{
 	{
-		$file = static::file($key);
-		return ! empty($file['tmp_name']);
+		return ! is_null(static::file("{$key}.tmp_name"));
 	}
 	}
 	
 	
 	/**
 	/**