From: martinlanghoff Date: Tue, 16 Jan 2007 23:27:14 +0000 (+0000) Subject: get_config() callers switched to expect a single value returned X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1fd471a1c1f4b2240bfb07f91ecd15dd06fb7b9c;p=moodle.git get_config() callers switched to expect a single value returned This simplifies the logic in the callers -- a good hint that that we are doing the right thing. --- diff --git a/grade/lib.php b/grade/lib.php index 8b04ba07cc..3978c7b1bf 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -3106,12 +3106,12 @@ function grade_get_course_students($courseid) { } $configvar = get_config('', 'gradebookroles'); - if (empty($configvar->value)) { + if (empty($configvar)) { notify ('no roles defined in admin->appearance->graderoles'); return false; // no roles to displayreturn false; } - if ($rolestoget = explode(',', $configvar->value)) { + if ($rolestoget = explode(',', $configvar)) { foreach ($rolestoget as $crole) { if ($tempstudents = get_role_users($crole, $context, true)) { foreach ($tempstudents as $tempuserid=>$tempstudent) {