Merge branch 'MDL-38397' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-03-19 12:28:01 +01:00
commit 70ca006538

View File

@ -673,7 +673,7 @@ abstract class question_edit_form extends question_wizard_form {
}
// Default mark.
if ($fromform['defaultmark'] < 0) {
if (array_key_exists('defaultmark', $fromform) && $fromform['defaultmark'] < 0) {
$errors['defaultmark'] = get_string('defaultmarkmustbepositive', 'question');
}