sync username when changed in either the default profile or the settings page
This commit is contained in:
parent
8b51ffefc0
commit
9660117c70
4 changed files with 1043 additions and 1027 deletions
|
@ -489,10 +489,12 @@ function settings_post(&$a) {
|
|||
|
||||
$r = q("UPDATE `profile`
|
||||
SET `publish` = %d,
|
||||
`name` = '%s',
|
||||
`net-publish` = %d,
|
||||
`hide-friends` = %d
|
||||
WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
|
||||
intval($publish),
|
||||
dbesc($username),
|
||||
intval($net_publish),
|
||||
intval($hide_friends),
|
||||
intval(local_user())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue