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 0f3cc7d commit 13180e5
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 @@ -202,7 +202,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 13180e5

Please sign in to comment.