Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e84b16
)
MDL-30717 add missing time created info in create_user_record()
author
Petr Skoda
<commits@skodak.org>
Tue, 27 Dec 2011 14:34:32 +0000
(15:34 +0100)
committer
Petr Skoda
<commits@skodak.org>
Sun, 8 Jan 2012 14:03:52 +0000
(15:03 +0100)
Credit goes to Luis Gustavo Mueller de Alcantara.
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
53df7d6
..
2c5d8c0
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
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);