Commit d0cdfb97 authored by Taylor Otwell's avatar Taylor Otwell

clean up has_file method.

parent 5fa78819
......@@ -205,8 +205,7 @@ class Input {
*/
public static function has_file($key)
{
$file = static::file($key);
return ! empty($file['tmp_name']);
return ! is_null(static::file("{$key}.tmp_name"));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment