diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 94bdd4b30e0..1d03a548068 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -190,7 +190,9 @@ class question_shortanswer_qtype extends default_questiontype { if ($question->options->usecase) { return strcmp($state->responses[''], $teststate->responses['']) == 0; } else { - return strcasecmp($state->responses[''], $teststate->responses['']) == 0; + $textlib = textlib_get_instance(); + return strcmp($textlib->strtolower($state->responses['']), + $textlib->strtolower($teststate->responses[''])) == 0; } } return false;