From e9861b11f3fd599d2491612dbb538fd008da4a40 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 20 Aug 2023 15:12:02 -0400 Subject: [PATCH] Don't update user.username from an empty profile.name in 1525 update --- update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.php b/update.php index 78295921a1..59340eed83 100644 --- a/update.php +++ b/update.php @@ -1356,7 +1356,8 @@ function update_1525(): int if (!DBA::e('UPDATE `user` u JOIN `profile` p ON p.`uid` = u.`uid` - SET u.`username` = p.`name`')) { + SET u.`username` = p.`name` + WHERE p.`name` != ""')) { return Update::FAILED; } -- 2.39.5