Change to parsing to allow answers in any order - needs testing

This commit is contained in:
moodler
2003-05-21 05:00:44 +00:00
parent 931ade40e3
commit 79da6d8717
+4
View File
@@ -55,7 +55,11 @@ class quiz_file_format extends quiz_default_format {
/// Parse the answers
$answers = str_replace("=", "~=", $answertext);
$answers = explode("~", $answertext);
if (empty(trim($answers[0]))) {
array_shift($answers);
}
$countanswers = count($answers);