fixed gradebookroles cfg default value MDL-7253; merged from MOODLE_17_STABLE

This commit is contained in:
skodak 2006-10-31 21:52:22 +00:00
parent 80aede31d3
commit 7aa3e196a3

View File

@ -2312,12 +2312,7 @@ class admin_setting_special_gradebookroles extends admin_setting {
$name = 'gradebookroles';
$visiblename = get_string('gradebookroles', 'admin');
$description = get_string('configgradebookroles', 'admin');
$default = $this->get_setting();
if (empty($default)) {
$default = array(5); // The student role in a default install
}
$default = array(5=>'1'); // The student role in a default install
parent::admin_setting($name, $visiblename, $description, $default);
}