Skip to content

Commit

Permalink
MDL-78427 user: Revert accidental addition of deleted line
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
junpataleta committed Feb 5, 2024
1 parent 3c196b3 commit da266d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions user/lib.php
Expand Up @@ -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) {
Expand Down

0 comments on commit da266d1

Please sign in to comment.