MDL-82518 core_user: Fix regression introduced by MDL-80271

This commit is contained in:
Daniel Neis Araujo 2024-07-17 16:40:26 -03:00
parent 8a6e8563fd
commit 4b7f1cd22e

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;
}
}