From 6800b07fc5177badb4b6f3e007ab642ecb0e50c0 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 14 Jul 2015 22:24:43 +0200 Subject: [PATCH] Update the name in the "self" contact when it is changed. --- mod/profiles.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) ); -- 2.39.5