From da266d1c0e74b18a0224d042439f2d44a32d6ef5 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 5 Feb 2024 13:50:50 +0800 Subject: [PATCH] MDL-78427 user: Revert accidental addition of deleted line In MDL-80271, the line `$user->timemodified = time();` was removed to make sure that `user_update_user()` does not unnecessarily writes to the database. This seems to have been accidentally put back during conflict resolution while rebasing the patch for MDL-78427. --- user/lib.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/user/lib.php b/user/lib.php index 7b9933052af..7bbe0e1b4af 100644 --- a/user/lib.php +++ b/user/lib.php @@ -216,8 +216,6 @@ function user_update_user($user, $updatepassword = true, $triggerevent = true) { } } - $user->timemodified = time(); - // Validate user data object. $uservalidation = core_user::validate($user); if ($uservalidation !== true) {