From 9c6a9bbeeebff42d1ae195f521ae9170756a755f Mon Sep 17 00:00:00 2001 From: Nick Howell Date: Thu, 8 Sep 2016 14:37:50 -0400 Subject: [PATCH] Fix fatal error on file uploads PR #15250 broke file uploads in Laravel 5.3.7. --- src/Illuminate/Http/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Http/Request.php b/src/Illuminate/Http/Request.php index 77b4d6c25e76..acfe88b06038 100644 --- a/src/Illuminate/Http/Request.php +++ b/src/Illuminate/Http/Request.php @@ -880,7 +880,7 @@ protected function filterFiles($files) $files[$key] = $this->filterFiles($files[$key]); } - if (! $files[$key]) { + if (empty($files[$key])) { unset($files[$key]); } }