Skip to content

Commit

Permalink
get active (visible) courses only
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc-Frank-Lengyel authored Oct 15, 2024
1 parent b03d219 commit 4347815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function attendance_get_user_sessions_log_full($userid, $pageparams) {
function attendance_get_user_courses_attendances($userid) {
global $DB;

$usercourses = enrol_get_users_courses($userid);
$usercourses = enrol_get_users_courses($userid, true);

list($usql, $uparams) = $DB->get_in_or_equal(array_keys($usercourses), SQL_PARAMS_NAMED, 'cid0');

Expand Down

0 comments on commit 4347815

Please sign in to comment.