Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reverting previous changes to MOODLE_17_STABLE

$configvar is an object so need to work with $configvar-value
  • Loading branch information...
commit f37cb203d8fa27ccf680d17bd76c042f508717d8 1 parent 3f5c88c
authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  grade/lib.php
4  grade/lib.php
@@ -3005,12 +3005,12 @@ function grade_get_course_students($courseid) {
3005 3005
     } 
3006 3006
         
3007 3007
     $configvar = get_config('', 'gradebookroles');
3008  
-    if (empty($configvar)) {
  3008
+    if (empty($configvar->value)) {
3009 3009
         notify ('no roles defined in admin->appearance->graderoles');
3010 3010
         return false; // no roles to displayreturn false;  
3011 3011
     }
3012 3012
          
3013  
-    if ($rolestoget = explode(',', $configvar)) {
  3013
+    if ($rolestoget = explode(',', $configvar->value)) {
3014 3014
         foreach ($rolestoget as $crole) {
3015 3015
             if ($tempstudents = get_role_users($crole, $context, true)) {
3016 3016
                 foreach ($tempstudents as $tempuserid=>$tempstudent) {

0 notes on commit f37cb20

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