From 41b477217da0f256a1573c14827309ba4a5d74a7 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 26 Jul 2007 07:58:00 +0000 Subject: [PATCH] MDL-10210 Removed the loading of the $CFG versions of the preferences when the user versions are set to default. This means that a value set to default always stays at default unless it is changed manually. --- grade/report/grader/preferences_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grade/report/grader/preferences_form.php b/grade/report/grader/preferences_form.php index 975a870522d..8a53f2afb5c 100644 --- a/grade/report/grader/preferences_form.php +++ b/grade/report/grader/preferences_form.php @@ -96,7 +96,7 @@ class grader_report_preferences_form extends moodleform { $full_pref = 'grade_report_' . $pref; - $pref_value = get_user_preferences($full_pref, $CFG->$full_pref); + $pref_value = get_user_preferences($full_pref); $options = null; if (is_array($type)) {