mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-11478, fixing a notice
This commit is contained in:
parent
6bb919860b
commit
e5ea84faba
1 changed files with 6 additions and 1 deletions
|
@ -109,7 +109,12 @@ class grader_report_preferences_form extends moodleform {
|
|||
if (is_array($type)) {
|
||||
$options = $type;
|
||||
$type = 'select';
|
||||
$default = $options[$CFG->$full_pref];
|
||||
// MDL-11478
|
||||
if (isset($options[$CFG->$full_pref])) {
|
||||
$default = $options[$CFG->$full_pref];
|
||||
} else {
|
||||
$default = '';
|
||||
}
|
||||
} else {
|
||||
$default = $CFG->$full_pref;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue