MDL-28684 QE2 upgrade: fix undefined $a regression. Thanks Henning!

This commit is contained in:
Eloy Lafuente (stronk7)
2011-08-25 15:54:41 +02:00
parent ee4dee99e8
commit 97e4e3953a
+1 -1
View File
@@ -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() {