Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Alfheim committed Mar 25, 2016
1 parent 61b0b4d commit 23d6fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Laravel/FormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ abstract class FormRequest extends BaseFormRequest
*/
public function initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], $content = null)
{
if ($request && ($rules = $this->sanitize())) {
if (! empty($request) && ($rules = $this->sanitize())) {
$sanitizer = app(Sanitizer::class)->rules($rules);

$request = $sanitizer->sanitize($request);
Expand Down

0 comments on commit 23d6fe7

Please sign in to comment.