From 974383f976ba64937ca3098fd5bc00d8d5bea26a Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 5 Jul 2006 12:00:23 +0000 Subject: [PATCH] Bug 5971 - Allow matching questions to have extra wrong answers - supplimental. And another one. --- question/type/match/questiontype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index a621bed1c0..2340f2af20 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -307,7 +307,7 @@ class question_match_qtype extends default_questiontype { // ULPGC ecastro for stats report function get_all_responses($question, $state) { - $answers = new stdClass; + $answers = array(); if (is_array($question->options->subquestions)) { foreach ($question->options->subquestions as $aid=>$answer) { $r = new stdClass; @@ -316,7 +316,7 @@ class question_match_qtype extends default_questiontype { $answers[$aid] = $r; } } else { - $answers[]="error"; // just for debugging, eliminate + $answers[] = "error"; // just for debugging, eliminate } $result = new stdClass; $result->id = $question->id; -- 2.39.5