Browse Source

Fix backup & restore errors with temporary users

MOODLE_29_STABLE
Davo Smith 10 years ago
parent
commit
f879340f2e
  1. 1
      tempusers.php

1
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.

Loading…
Cancel
Save