Skip to content

Commit

Permalink
MDL-28684 QE2 upgrade: fix undefined $a regression. Thanks Henning!
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 25, 2011
1 parent ee4dee9 commit 97e4e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/multichoice/db/upgradelib.php
Expand Up @@ -41,7 +41,7 @@ class qtype_multichoice_qe2_attempt_updater extends question_qtype_attempt_updat

public function is_blank_answer($state) {
// blank multichoice answers are not empty strings, they rather end in a colon
return empty($state->answer) || substr($a, -1) == ':';
return empty($state->answer) || substr($state->answer, -1) == ':';
}

public function right_answer() {
Expand Down

0 comments on commit 97e4e39

Please sign in to comment.