Permalink
Browse files

Merge branch 'MDL-34259-22' of git://github.com/FMCorz/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
2 parents dc5ab79 + e45890a commit 957576fd62ee328a979a513c4f5377ec4c338469 @danpoltawski danpoltawski committed Aug 6, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/lesson/pagetypes/truefalse.php
@@ -76,12 +76,11 @@ public function check_answer() {
$result = parent::check_answer();
- $answerid = $data->answerid;
- if ($answerid === false) {
+ if (empty($data->answerid)) {
$result->noanswer = true;
return $result;
}
- $result->answerid = $answerid;
+ $result->answerid = $data->answerid;
$answer = $DB->get_record("lesson_answers", array("id" => $result->answerid), '*', MUST_EXIST);
if ($this->lesson->jumpto_is_correct($this->properties->id, $answer->jumpto)) {
$result->correctanswer = true;

0 comments on commit 957576f

Please sign in to comment.