Permalink
Browse files

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

Credit goes to Luis Gustavo Mueller de Alcantara.
  • Loading branch information...
1 parent 6d768d0 commit d877eba8477016ef577757656143e715551c612a @skodak skodak committed Dec 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/moodlelib.php
View
@@ -3298,7 +3298,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);

0 comments on commit d877eba

Please sign in to comment.