Skip to content

Commit

Permalink
MDL-12329 fixed last access when course not accessed yet - patch by Y…
Browse files Browse the repository at this point in the history
…olanda Ordóñez Rufat; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Nov 23, 2007
1 parent 0ad439b commit 010aa4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 010aa4d

Please sign in to comment.