diff --git a/user/lib.php b/user/lib.php index e975673301a..6d1acf2d4a9 100644 --- a/user/lib.php +++ b/user/lib.php @@ -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; } }