Skip to content
Browse files

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.
  • Loading branch information...
1 parent 9220fba commit 1fd471a1c1f4b2240bfb07f91ecd15dd06fb7b9c martinlanghoff committed Jan 16, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 grade/lib.php
View
4 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) {

0 comments on commit 1fd471a

Please sign in to comment.
Something went wrong with that request. Please try again.