Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Empty feedback array added for multiple choice questions, needed by u…

…nderlying

quiz library.
Still some notices in this that need looking at
  • Loading branch information...
commit 5c15bd839fd9e63054ba6f6a820afe368a769f4d 1 parent 9021f81
thepurpleblob authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/quiz/format/webct/format.php
View
4 mod/quiz/format/webct/format.php
@@ -346,8 +346,10 @@ function readquestions ($lines) {
$QuestionOK = FALSE;
}
else {
- // Perform string length check
+ // Perform string length check and create empty feedback array
+ $question->feedback = array();
foreach ($question->answer as $key => $dataanswer) {
+ $question->feedback[$key] = '';
if (strlen($dataanswer) > 255) {
$question->answer[$key] = substr($dataanswer,0,250)."...";
$warnings[] = get_string("answertoolong", "quiz", $nQuestionStartLine);
Please sign in to comment.
Something went wrong with that request. Please try again.