MDL-62275 qtype_calculatedmulti: Fix typo
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 11 May 2018 19:16:41 +0000 (21:16 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 11 May 2018 19:16:41 +0000 (21:16 +0200)
question/type/calculatedmulti/questiontype.php

index 377ae22..0c2df5f 100644 (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);