Don't update user.username from an empty profile.name in 1525 update
This commit is contained in:
parent
1edb7b6464
commit
e9861b11f3
|
@ -1356,7 +1356,8 @@ function update_1525(): int
|
||||||
if (!DBA::e('UPDATE `user` u
|
if (!DBA::e('UPDATE `user` u
|
||||||
JOIN `profile` p
|
JOIN `profile` p
|
||||||
ON p.`uid` = u.`uid`
|
ON p.`uid` = u.`uid`
|
||||||
SET u.`username` = p.`name`')) {
|
SET u.`username` = p.`name`
|
||||||
|
WHERE p.`name` != ""')) {
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user