From 2d7b7fb7eafb9fbd6e54e7ff161a90e1b9d2a718 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 11 May 2018 21:16:41 +0200 Subject: [PATCH] MDL-62275 qtype_calculatedmulti: Fix typo --- question/type/calculatedmulti/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/type/calculatedmulti/questiontype.php b/question/type/calculatedmulti/questiontype.php index 377ae22a1e8..0c2df5f0bb9 100644 --- a/question/type/calculatedmulti/questiontype.php +++ b/question/type/calculatedmulti/questiontype.php @@ -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.'
'.$anstext; } return fullclone($comment);