diff --git a/tempusers.php b/tempusers.php index df1733f..8fc2a3d 100644 --- 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.