Merge branch 'MOODLE_main_MDL-82518' of https://github.com/danielneis/moodle

This commit is contained in:
Jun Pataleta
2024-08-07 17:12:14 +08:00
+1 -1
View File
@@ -217,7 +217,7 @@ function user_update_user($user, $updatepassword = true, $triggerevent = true) {
if (!property_exists($currentrecord, $attributekey) || $attributekey === 'timemodified') {
continue;
}
if ($currentrecord->{$attributekey} != $attributevalue) {
if ($currentrecord->{$attributekey} !== $attributevalue) {
$changedattributes[$attributekey] = $attributevalue;
}
}