Skip to content

Commit

Permalink
Merge branch 'MDL-38397_23' of git://github.com/timhunt/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_23_STABLE
  • Loading branch information
stronk7 committed Mar 19, 2013
2 parents cf9b57d + 0147d3d commit a3db3bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/type/edit_question_form.php
Expand Up @@ -656,7 +656,7 @@ public function validation($fromform, $files) {
}

// Default mark.
if ($fromform['defaultmark'] < 0) {
if (array_key_exists('defaultmark', $fromform) && $fromform['defaultmark'] < 0) {
$errors['defaultmark'] = get_string('defaultmarkmustbepositive', 'question');
}

Expand Down

0 comments on commit a3db3bf

Please sign in to comment.