]> git.mxchange.org Git - friendica.git/commitdiff
gender will be updated in the profiles as well.
authorMichael Vogel <icarus@dabo.de>
Sun, 25 Jan 2015 12:22:25 +0000 (13:22 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 25 Jan 2015 12:22:25 +0000 (13:22 +0100)
mod/profiles.php

index a0f10fb95d24ff5b616b573c17cc6a945a1b8f85..e71a4c603aa7ae7dab2abfc040f46344555620d7 100644 (file)
@@ -485,10 +485,11 @@ function profiles_post(&$a) {
 
                if($is_default) {
 
-                       $r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s' WHERE `self` = 1 AND `uid` = %d",
+                       $r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` = 1 AND `uid` = %d",
                                dbesc($about),
                                dbesc($locality),
                                dbesc($pub_keywords),
+                               dbesc($gender),
                                intval(local_user())
                        );