mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Don't update user.username from an empty profile.name in 1525 update
This commit is contained in:
parent
1edb7b6464
commit
e9861b11f3
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue