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

This commit is contained in:
Eloy Lafuente (stronk7)
2013-03-19 12:29:01 +01:00
+1 -1
View File
@@ -656,7 +656,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');
}