Merged fix for last access time for my moodle, MDL-7609.

This commit is contained in:
moodler 2006-12-05 07:00:43 +00:00
parent caac897791
commit 40cab82e64

View File

@ -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;
}