mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch 'wip-MDL-49189-master' of https://github.com/kwiliarty/moodle
This commit is contained in:
commit
8b6ceab953
@ -3809,8 +3809,10 @@ function update_user_record_by_id($id) {
|
||||
$customfields = $userauth->get_custom_user_profile_fields();
|
||||
|
||||
foreach ($newinfo as $key => $value) {
|
||||
$key = strtolower($key);
|
||||
$iscustom = in_array($key, $customfields);
|
||||
if (!$iscustom) {
|
||||
$key = strtolower($key);
|
||||
}
|
||||
if ((!property_exists($oldinfo, $key) && !$iscustom) or $key === 'username' or $key === 'id'
|
||||
or $key === 'auth' or $key === 'mnethostid' or $key === 'deleted') {
|
||||
// Unknown or must not be changed.
|
||||
|
Loading…
x
Reference in New Issue
Block a user