Skip to content
Browse files

Merge branch 'MDL-36076_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents 6dc3815 + 91a307c commit 0be66059a24915f055071be2d22ac6a92b23cc52 Sam Hemelryk committed Oct 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/type/multichoice/edit_multichoice_form.php
View
4 question/type/multichoice/edit_multichoice_form.php
@@ -110,10 +110,10 @@ public function validation($data, $files) {
//check no of choices
$trimmedanswer = trim($answer['text']);
$fraction = (float) $data['fraction'][$key];
- if (empty($trimmedanswer) && empty($fraction)) {
+ if ($trimmedanswer === '' && empty($fraction)) {
continue;
}
- if (empty($trimmedanswer)) {
+ if ($trimmedanswer === '') {
$errors['fraction['.$key.']'] = get_string('errgradesetanswerblank', 'qtype_multichoice');
}

0 comments on commit 0be6605

Please sign in to comment.
Something went wrong with that request. Please try again.