Update api/answer.php
This commit is contained in:
1 parent
cb8bf3f1d1
commit
c9bfed971a
1 file changed
+1
-2
+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