]> git.mjollnir.org Git - moodle.git/commitdiff
merged fixed gradebookroles settings
authortoyomoyo <toyomoyo>
Mon, 30 Oct 2006 08:44:53 +0000 (08:44 +0000)
committertoyomoyo <toyomoyo>
Mon, 30 Oct 2006 08:44:53 +0000 (08:44 +0000)
lib/adminlib.php

index 531b7fa08c5d1696035770eaed7da403d49d952c..aae3b807b54d9c7cf9e54827de02bbcf7a4d8395 100644 (file)
@@ -2327,13 +2327,7 @@ class admin_setting_special_gradebookroles extends admin_setting {
         if (!empty($CFG->{$this->name})) {
             return explode(',', $CFG->{$this->name});
         } else {
-            $value = array();
-            if ($studentroles = get_roles_with_capability('moodle/legacy:student', CAP_ALLOW)) {
-                foreach ($studentroles as $roleid=>$studentrole) {
-                    $value[] = $roleid;
-                }
-            }
-            return $value;
+            return null;
         }
     }