Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-30717 add missing time created info in create_user_record()

Credit goes to Luis Gustavo Mueller de Alcantara.
  • Loading branch information...
commit 17330e8aaed2b659464a39be7359fbf4965ed212 1 parent a1d2463
@skodak skodak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/moodlelib.php
View
3  lib/moodlelib.php
@@ -3607,7 +3607,8 @@ function create_user_record($username, $password, $auth = 'manual') {
}
$newuser->confirmed = 1;
$newuser->lastip = getremoteaddr();
- $newuser->timemodified = time();
+ $newuser->timecreated = time();
+ $newuser->timemodified = $newuser->timecreated;
$newuser->mnethostid = $CFG->mnet_localhost_id;
$newuser->id = $DB->insert_record('user', $newuser);
Please sign in to comment.
Something went wrong with that request. Please try again.