projects
/
moodle-mod_attendance.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d354f29
)
Fix backup & restore errors with temporary users
author
Davo Smith
<git@davosmith.co.uk>
Mon, 13 Jul 2015 10:51:47 +0000
(11:51 +0100)
committer
Davo Smith
<git@davosmith.co.uk>
Mon, 13 Jul 2015 10:52:12 +0000
(11:52 +0100)
tempusers.php
patch
|
blob
|
history
diff --git
a/tempusers.php
b/tempusers.php
index
df1733f
..
8fc2a3d
100644
(file)
--- a/
tempusers.php
+++ b/
tempusers.php
@@
-64,6
+64,7
@@
if ($data = $mform->get_data()) {
$user->email = time().'@ghost.user.de';
$user->username = time().'@ghost.user.de';
$user->idnumber = 'tempghost';
+ $user->mnethostid = $CFG->mnet_localhost_id;
$studentid = $DB->insert_record('user', $user);
// Create the temporary user record.