Skip to content

Commit

Permalink
Merge pull request #22 from AndrewHaine/andrewhaine/fix-empty-submiss…
Browse files Browse the repository at this point in the history
…ions-issue

Set default fallback for getSerialized call in case spam file is empty
  • Loading branch information
edalzell authored Oct 30, 2020
2 parents be99f3e + 6fee964 commit 8841e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Akismet/AkismetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function getSpam(Request $request)
),
array_filter(
$this->storage
->getSerialized(Path::assemble($formset, $filename))
->getSerialized(Path::assemble($formset, $filename), collect([]))
->toArray()
)
);
Expand Down

0 comments on commit 8841e15

Please sign in to comment.