From 40cab82e64723bf579b0cc1dd0de94419ba20157 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 5 Dec 2006 07:00:43 +0000 Subject: [PATCH] Merged fix for last access time for my moodle, MDL-7609. --- my/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5