From: skodak Date: Fri, 23 Nov 2007 21:31:58 +0000 (+0000) Subject: MDL-12329 fixed last access when course not accessed yet - patch by Yolanda Ordóñez... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=010aa4da8bbe54481cc23de7843e4517a89b220f;p=moodle.git MDL-12329 fixed last access when course not accessed yet - patch by Yolanda Ordóñez Rufat; merged from MOODLE_19_STABLE --- diff --git a/user/view.php b/user/view.php index f25006bd2f..2d413a5158 100644 --- a/user/view.php +++ b/user/view.php @@ -147,6 +147,7 @@ add_to_log($course->id, "user", "view", "view.php?id=$user->id&course=$course->id", "$user->id"); if ($course->id != SITEID) { + $user->lastaccess = false; if ($lastaccess = get_record('user_lastaccess', 'userid', $user->id, 'courseid', $course->id)) { $user->lastaccess = $lastaccess->timeaccess; }