Browse Source

Fix course list when user is not student boss - refs BT#9442

Angel Fernando Quiroz Campos 10 years ago
parent
commit
5106e2d391
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/gradebook/certificate_report.php

+ 4 - 0
main/gradebook/certificate_report.php

@@ -72,7 +72,11 @@ if ($selectedSession > 0) {
 }
 
 foreach ($coursesList as $course) {
+    if (isset($course['real_id'])) {
+        $courses[$course['real_id']] = $course['title'];
+    } else {
     $courses[$course['id']] = $course['title'];
+    }
 }
 
 for ($key = 1; $key <= 12; $key++) {