Merge pull request #903 from Lapayo/master
Fixed a little bug with the Input::has_file function
This commit is contained in:
commit
6e9efb464d
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue