From 105d6a22a4905afc60bed8a826842f7e0ce3ec44 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 25 Jan 2015 13:22:25 +0100 Subject: [PATCH] gender will be updated in the profiles as well. --- mod/profiles.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/profiles.php b/mod/profiles.php index a0f10fb95d..e71a4c603a 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -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()) );