Merge branch 'MDL-28684_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2011-08-24 17:12:18 +02:00
+1 -3
View File
@@ -41,9 +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
$a = $state->answer;
$empty = (substr($a, strlen($a) - 1) == ':');
return $empty;
return empty($state->answer) || substr($a, -1) == ':';
}
public function right_answer() {