]> git.mxchange.org Git - friendica.git/commitdiff
Update the name in the "self" contact when it is changed.
authorMichael Vogel <icarus@dabo.de>
Tue, 14 Jul 2015 20:24:43 +0000 (22:24 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 14 Jul 2015 20:24:43 +0000 (22:24 +0200)
mod/profiles.php

index 30b41954553fc5d1b9b288b2e68b6a241bdb84f2..993504a712425b780ed0a571d9c00009317b8f2c 100644 (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())
                        );