Added a new column to user_students and user_teachers called "timeaccess"

for recording the last access to the COURSE.

This is updated at the same time as add_to_log and is now used instead
of user->lastaccess when course user listings are required.

This means course listings now show what you expect and open up the way
for a "current users" listing and instant messaging etc ...
This commit is contained in:
moodler 2003-10-27 12:38:00 +00:00
parent ecd25101f5
commit 4d744a220a
8 changed files with 62 additions and 17 deletions

View file

@ -72,7 +72,11 @@
}
}
$dsort = "u.$sort";
if ($sort = lastaccess) {
$dsort = "s.timeaccess";
} else {
$dsort = "u.$sort";
}
$totalcount = count_records("user_students", "course", $course->id);