MDL-11478, fixing a notice

This commit is contained in:
toyomoyo 2007-09-28 01:53:45 +00:00
parent 6bb919860b
commit e5ea84faba

View file

@ -109,7 +109,12 @@ class grader_report_preferences_form extends moodleform {
if (is_array($type)) {
$options = $type;
$type = 'select';
// MDL-11478
if (isset($options[$CFG->$full_pref])) {
$default = $options[$CFG->$full_pref];
} else {
$default = '';
}
} else {
$default = $CFG->$full_pref;
}