Update api/answer.php
This commit is contained in:
+1
-2
@@ -35,8 +35,7 @@ foreach ($data['words'] as $word) {
|
|||||||
if ($word['id'] === $wordId) {
|
if ($word['id'] === $wordId) {
|
||||||
|
|
||||||
$correct =
|
$correct =
|
||||||
strtolower($word['answer']) === strtolower($userAnswer);
|
normalize($word['answer']) === normalize($userAnswer);
|
||||||
|
|
||||||
updateWordStats($word, $correct);
|
updateWordStats($word, $correct);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user