mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merged lastcourseaccess fixes from MDL-7134
This commit is contained in:
parent
4067b96821
commit
116cd201ea
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@
|
||||||
if (empty($date)) { // no date picked, default to last login time
|
if (empty($date)) { // no date picked, default to last login time
|
||||||
$date = time() - COURSE_MAX_RECENT_PERIOD;
|
$date = time() - COURSE_MAX_RECENT_PERIOD;
|
||||||
|
|
||||||
if (!empty($USER->timeaccess[$course->id])) {
|
if (!empty($USER->lastcourseaccess[$course->id])) {
|
||||||
if ($USER->timeaccess[$course->id] > $date) {
|
if ($USER->lastcourseaccess[$course->id] > $date) {
|
||||||
$date = $USER->timeaccess[$course->id];
|
$date = $USER->lastcourseaccess[$course->id];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue