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...
1 parent 9021f81 commit 5c15bd839fd9e63054ba6f6a820afe368a769f4d thepurpleblob committed Jul 19, 2005
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);

0 comments on commit 5c15bd8

Please sign in to comment.