mirror of
https://github.com/silverstripe/silverstripe-mathspamprotection
synced 2024-10-22 08:05:52 +02:00
Update MathSpamProtectorField.php
This commit is contained in:
parent
a1b85b0d97
commit
644360c9c0
@ -133,8 +133,7 @@ class MathSpamProtectorField extends TextField {
|
||||
|
||||
$word = MathSpamProtectorField::digit_to_word($v1 + $v2);
|
||||
|
||||
$allow_numeric_answer = Config::inst()->get('MathSpamProtectorField', 'allow_numeric_answer');
|
||||
return ($word == strtolower($answer) || ((($v1 + $v2) == $answer) and $allow_numeric_answer));
|
||||
return ($word == strtolower($answer) || (Config::inst()->get('MathSpamProtectorField', 'allow_numeric_answer') && (($v1 + $v2) == $answer)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user