Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
check is set before trying to access it
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Oct 15, 2021
1 parent 5ae3fdb commit 74fcece
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/StopForumSpam.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public function shouldPreventLogin(array $data, ?string $provider = null, ?array

foreach ($body as $key => $value) {
if ((int) $this->settings->get("fof-stopforumspam.$key")) {
$frequency += $value->frequency;
if (isset($value->frequency)) {
$frequency += $value->frequency;
}

if (isset($value->confidence)) {
$confidence += $value->confidence;
Expand Down

0 comments on commit 74fcece

Please sign in to comment.