mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-30717 add missing time created info in create_user_record()
Credit goes to Luis Gustavo Mueller de Alcantara.
This commit is contained in:
parent
a1d246334b
commit
17330e8aae
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue