From 4b7f1cd22e500279285717ab0fae35e5456b7837 Mon Sep 17 00:00:00 2001 From: Daniel Neis Araujo Date: Wed, 17 Jul 2024 16:40:26 -0300 Subject: [PATCH] MDL-82518 core_user: Fix regression introduced by MDL-80271 --- user/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }