diff --git a/user/lib.php b/user/lib.php index 36e466e3a10..0c050d0c9bc 100644 --- a/user/lib.php +++ b/user/lib.php @@ -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; } }