Merge pull request #52 from Tech-Maou/patch-1

Update for strict comparison with ===
This commit is contained in:
Will Rossiter 2021-04-01 08:48:42 +13:00 committed by GitHub
commit ad36c19cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,7 +151,7 @@ class MathSpamProtectorField extends TextField
$word = MathSpamProtectorField::digit_to_word($v1 + $v2);
return ($word == strtolower($answer) || ($this->config()->get('allow_numeric_answer') && (($v1 + $v2) == $answer)));
return ($word == strtolower($answer) || ($this->config()->get('allow_numeric_answer') && (($v1 + $v2) === $answer)));
}
/**