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

This commit is contained in:
Daniel Neis Araujo
2024-08-02 14:47:48 -03:00
parent 431f27e7bf
commit 6f77e20d2b
+1 -1
View File
@@ -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;
}
}