Skip to content

Commit

Permalink
now the lastaccess field is also updated upon every login, closing bu…
Browse files Browse the repository at this point in the history
…g 1833
  • Loading branch information
gustav_delius committed Aug 29, 2004
1 parent 0475502 commit 2a2f5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -442,7 +442,7 @@ function update_user_login_times() {
global $USER;

$USER->lastlogin = $user->lastlogin = $USER->currentlogin;
$USER->currentlogin = $user->currentlogin = time();
$USER->currentlogin = $user->lastaccess = $user->currentlogin = time();

$user->id = $USER->id;

Expand Down

0 comments on commit 2a2f5f1

Please sign in to comment.