Browse Source

Merge pull request #1761 from annando/1507-update-name

Update the name in the "self" contact when it is changed.
pull/1764/head
Tobias Diekershoff 6 years ago
parent
commit
74a2f58efb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mod/profiles.php

+ 2
- 1
mod/profiles.php View File

@ -470,7 +470,8 @@ function profiles_post(&$a) {
if($namechanged && $is_default) {
$r = q("UPDATE `contact` SET `name-date` = '%s' WHERE `self` = 1 AND `uid` = %d",
$r = q("UPDATE `contact` SET `name` = '%s', `name-date` = '%s' WHERE `self` = 1 AND `uid` = %d",
dbesc($name),
dbesc(datetime_convert()),
intval(local_user())
);


Loading…
Cancel
Save