From: moodler Date: Tue, 5 Dec 2006 07:00:43 +0000 (+0000) Subject: Merged fix for last access time for my moodle, MDL-7609. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=40cab82e64723bf579b0cc1dd0de94419ba20157;p=moodle.git Merged fix for last access time for my moodle, MDL-7609. --- diff --git a/my/index.php b/my/index.php index 8766796ee5..40c45bd536 100644 --- a/my/index.php +++ b/my/index.php @@ -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; }