MDL-28684 QE2 upgrade: fix undefined $a regression. Thanks Henning!
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user