MDL-62275 qtype_calculatedmulti: Fix typo

This commit is contained in:
Eloy Lafuente (stronk7) 2018-05-11 21:16:41 +02:00
parent 9fa74e9374
commit 5aa93d1b1f

View File

@ -251,7 +251,7 @@ class qtype_calculatedmulti extends qtype_calculated {
}
$replaces[$formula] = $str;
}
$anstext = str_replace(arary_keys($replaces), arary_values($replaces), $anssubstituted);
$anstext = str_replace(array_keys($replaces), array_values($replaces), $anssubstituted);
$comment->stranswers[$key] = $anssubstituted.'<br/>'.$anstext;
}
return fullclone($comment);