Input::has_file was not working properly.

This one should work perfect :)
This commit is contained in:
Simon 2012-07-04 22:56:58 +03:00
parent 97ceecd1ef
commit f05148503e
1 changed files with 1 additions and 1 deletions

View File

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