Skip to content

Commit

Permalink
Fix fatal error on file uploads (#15350)
Browse files Browse the repository at this point in the history
PR #15250 broke file uploads in Laravel 5.3.7.
  • Loading branch information
nhowell authored and taylorotwell committed Sep 9, 2016
1 parent 514df70 commit eb6e0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ protected function filterFiles($files)
$files[$key] = $this->filterFiles($files[$key]);
}

if (! $files[$key]) {
if (empty($files[$key])) {
unset($files[$key]);
}
}
Expand Down

0 comments on commit eb6e0fd

Please sign in to comment.