From: Michael Vogel Date: Tue, 14 Jul 2015 20:24:43 +0000 (+0200) Subject: Update the name in the "self" contact when it is changed. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6800b07fc5177badb4b6f3e007ab642ecb0e50c0;p=friendica.git Update the name in the "self" contact when it is changed. --- diff --git a/mod/profiles.php b/mod/profiles.php index 30b4195455..993504a712 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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()) );