Skip to content

Commit

Permalink
Minor coding style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviervalentin committed May 30, 2024
1 parent 1fb090d commit eab7836
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions admin_dashboard/courses_without_teachers.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@
$courseinfo = $DB->get_record('course', ['id' => $course->course]);
// Count enrolled students.
$allstudents = count(get_role_users(get_config('report_coursemanager', 'student_role_report'), $coursecontext));
// Retrieve course weight calculated by task, recorded in coursemanager table.
// $weight = $DB->get_record('report_coursemanager_reports', ['report' => 'weight', 'course' => $course->course]);

// Retrieve last user access to course.
$sqllastaccess = 'SELECT MAX(timeaccess) AS lastaccess
Expand Down Expand Up @@ -191,7 +189,7 @@
// Print the whole table.
echo html_writer::table($table);

$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/courses_without_teachers.php', array('perpage' => $perpage));
$baseurl = new moodle_url('/report/coursemanager/admin_dashboard/courses_without_teachers.php', ['perpage' => $perpage]);
echo $OUTPUT->paging_bar(count($existsnoteacherincourse), $page, $perpage, $baseurl);
} else {
// If no course without teacher, add a message in place of table.
Expand Down

0 comments on commit eab7836

Please sign in to comment.