mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
No longer need the getuserinfo parameter
This commit is contained in:
parent
7c58aee6c7
commit
6ae24de0e1
@ -1401,7 +1401,7 @@ function create_user_record($username, $password) {
|
||||
// Creates a bare-bones user record
|
||||
global $REMOTE_ADDR, $CFG;
|
||||
|
||||
if ($CFG->auth_update_userinfo and function_exists(auth_get_userinfo)) {
|
||||
if (function_exists(auth_get_userinfo)) {
|
||||
if ($newinfo = auth_get_userinfo($username)) {
|
||||
foreach ($newinfo as $key => $value){
|
||||
$newuser->$key = $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user