Browse Source

Merge pull request #903 from Lapayo/master

Fixed a little bug with the Input::has_file function
Taylor Otwell 12 years ago
parent
commit
6e9efb464d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/input.php

+ 1 - 1
laravel/input.php

@@ -205,7 +205,7 @@ class Input {
 	 */
 	public static function has_file($key)
 	{
-		return ! is_null(static::file("{$key}.tmp_name"));
+		return strlen(static::file("{$key}.tmp_name", "")) > 0;
 	}
 
 	/**