clean up has_file method.

This commit is contained in:
Taylor Otwell 2012-05-03 08:35:02 -05:00
parent 5fa78819eb
commit d0cdfb971d
1 changed files with 1 additions and 2 deletions

View File

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