]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11478, fixing a notice
authortoyomoyo <toyomoyo>
Fri, 28 Sep 2007 01:53:45 +0000 (01:53 +0000)
committertoyomoyo <toyomoyo>
Fri, 28 Sep 2007 01:53:45 +0000 (01:53 +0000)
grade/report/grader/preferences_form.php

index 164de20a771367e58767eaf59add61e38493d6ef..461e1d5a3cbea093c6db431c01ad6126917e1b21 100644 (file)
@@ -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;
                 }