mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-38397' of git://github.com/timhunt/moodle
This commit is contained in:
commit
70ca006538
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user