From: Hypolite Petovan Date: Sun, 20 Aug 2023 19:12:02 +0000 (-0400) Subject: Don't update user.username from an empty profile.name in 1525 update X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e9861b11f3fd599d2491612dbb538fd008da4a40;p=friendica.git Don't update user.username from an empty profile.name in 1525 update --- 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; }