Skip to content

Commit

Permalink
MDL-82518 core_user: Incorrect attribute changed test introduced by M…
Browse files Browse the repository at this point in the history
…DL-80271
  • Loading branch information
danielneis committed Jul 17, 2024
1 parent 5fe8984 commit d013a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,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;
}
}
Expand Down

0 comments on commit d013a88

Please sign in to comment.