Skip to content

Commit

Permalink
MDL-23197 fixed matching regression, sorry
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jul 21, 2010
1 parent 395dae3 commit 01310df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mod/lesson/pagetypes/matching.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public function check_answer() {
return $result;
}
$answers = $this->get_answers();

$ncorrect = 0;
$i = 0;
foreach ($answers as $answer) {
Expand Down Expand Up @@ -322,8 +321,8 @@ public function update($properties) {
$this->answers[$i]->answer = $properties->answer_editor[$i]['text'];
$this->answers[$i]->answerformat = $properties->answer_editor[$i]['format'];
if (isset($properties->response_editor[$i])) {
$this->answers[$i]->response = $properties->response[$i]['text'];
$this->answers[$i]->responseformat = $properties->response[$i]['format'];
$this->answers[$i]->response = $properties->response_editor[$i]['text'];
$this->answers[$i]->responseformat = $properties->response_editor[$i]['format'];
}
if (isset($properties->jumpto[$i])) {
$this->answers[$i]->jumpto = $properties->jumpto[$i];
Expand Down

0 comments on commit 01310df

Please sign in to comment.