Skip to content

Commit

Permalink
Reverting previous changes to MOODLE_17_STABLE
Browse files Browse the repository at this point in the history
$configvar is an object so need to work with $configvar-value
  • Loading branch information
ikawhero committed Nov 21, 2007
1 parent 3f5c88c commit f37cb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/lib.php
Expand Up @@ -3005,12 +3005,12 @@ function grade_get_course_students($courseid) {
}

$configvar = get_config('', 'gradebookroles');
if (empty($configvar)) {
if (empty($configvar->value)) {
notify ('no roles defined in admin->appearance->graderoles');
return false; // no roles to displayreturn false;
}

if ($rolestoget = explode(',', $configvar)) {
if ($rolestoget = explode(',', $configvar->value)) {
foreach ($rolestoget as $crole) {
if ($tempstudents = get_role_users($crole, $context, true)) {
foreach ($tempstudents as $tempuserid=>$tempstudent) {
Expand Down

0 comments on commit f37cb20

Please sign in to comment.