More details in the location field for poco.

This commit is contained in:
Michael Vogel 2015-02-04 10:43:30 +01:00
commit 29f732e811
2 changed files with 58 additions and 5 deletions

View file

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