https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1edb7b6
)
Don't update user.username from an empty profile.name in 1525 update
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sun, 20 Aug 2023 19:12:02 +0000
(15:12 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sun, 20 Aug 2023 19:12:02 +0000
(15:12 -0400)
update.php
patch
|
blob
|
history
diff --git
a/update.php
b/update.php
index
7829592
..
59340ee
100644
(file)
--- 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;
}