mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-12329 fixed last access when course not accessed yet - patch by Yolanda Ordóñez Rufat; merged from MOODLE_19_STABLE
This commit is contained in:
parent
0ad439bb42
commit
010aa4da8b
@ -147,6 +147,7 @@
|
||||
add_to_log($course->id, "user", "view", "view.php?id=$user->id&course=$course->id", "$user->id");
|
||||
|
||||
if ($course->id != SITEID) {
|
||||
$user->lastaccess = false;
|
||||
if ($lastaccess = get_record('user_lastaccess', 'userid', $user->id, 'courseid', $course->id)) {
|
||||
$user->lastaccess = $lastaccess->timeaccess;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user