From d0cdfb971d1d49b3b6214a44cf46254734a1b917 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 3 May 2012 08:35:02 -0500 Subject: [PATCH] clean up has_file method. --- laravel/input.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/laravel/input.php b/laravel/input.php index f08d7be8..94e14745 100644 --- a/laravel/input.php +++ b/laravel/input.php @@ -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")); } /**