Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…OODLE_23_STABLE
  • Loading branch information...
commit a3db3bfac030abdc32ef851cc6b3651bd637c36e 2 parents cf9b57d + 0147d3d
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  question/type/edit_question_form.php
View
2  question/type/edit_question_form.php
@@ -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');
}
Please sign in to comment.
Something went wrong with that request. Please try again.