mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Merged fix for last access time for my moodle, MDL-7609.
This commit is contained in:
parent
caac897791
commit
40cab82e64
@ -62,8 +62,8 @@
|
||||
}
|
||||
|
||||
foreach ($courses as $c) {
|
||||
if (isset($USER->timeaccess) && array_key_exists($c->id,$USER->timeaccess)) {
|
||||
$courses[$c->id]->lastaccess = $USER->timeaccess[$c->id];
|
||||
if (isset($USER->lastcourseaccess[$c->id])) {
|
||||
$courses[$c->id]->lastaccess = $USER->lastcourseaccess[$c->id];
|
||||
} else {
|
||||
$courses[$c->id]->lastaccess = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user